﻿<Fluent:RibbonWindow x:Class="Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:Fluent="clr-namespace:Fluent;assembly=Fluent"
    xmlns:my2="clr-namespace:SearchTextBox;assembly=SearchTextBox"
    xmlns:my="clr-namespace:Biller"
    xmlns:charting="clr-namespace:System.Windows.Controls.DataVisualization.Charting;assembly=System.Windows.Controls.DataVisualization.Toolkit"
    xmlns:metro="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
    Title="Biller" Width="1360" Height="760" Icon="/Biller;component/Biller.ico" TextOptions.TextFormattingMode="Display">
    <Fluent:RibbonWindow.Resources>
        <ResourceDictionary>
            <Style TargetType="{x:Type TreeViewItem}">
                <!-- Style for the selected item -->
                <Setter Property="BorderThickness" Value="1"/>
                <Style.Triggers>
                    <!-- Selected and has focus -->
                    <Trigger Property="IsSelected" Value="True">
                        <Setter Property="BorderBrush" Value="#7DA2CE"/>
                    </Trigger>
                    <!-- Selected but does not have the focus -->
                    <MultiTrigger>
                        <MultiTrigger.Conditions>
                            <Condition Property="IsSelected" Value="True"/>
                            <Condition Property="IsSelectionActive" Value="False"/>
                        </MultiTrigger.Conditions>
                        <Setter Property="BorderBrush" Value="#D9D9D9"/>
                    </MultiTrigger>
                </Style.Triggers>
                <Style.Resources>
                    <Style TargetType="Border">
                        <Setter Property="CornerRadius" Value="2"/>
                    </Style>
                </Style.Resources>
            </Style>
            <BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter" />
            <my:OrderTypeConverter x:Key="OrderTypeConverter"/>
            <my:InverseBooleanConverter x:Key="InverseBooleanConverter"/>
            <my:ValueConverterGroup x:Key="InvertAndVisibilitate">
                <my:InverseBooleanConverter/>
                <BooleanToVisibilityConverter/>
            </my:ValueConverterGroup>
            <!-- Brushes for the selected item -->
            <LinearGradientBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" EndPoint="0,1" StartPoint="0,0">
                <GradientStop Color="#FFDCEBFC" Offset="0"/>
                <GradientStop Color="#FFC1DBFC" Offset="1"/>
            </LinearGradientBrush>
            <LinearGradientBrush x:Key="{x:Static SystemColors.ControlBrushKey}" EndPoint="0,1" StartPoint="0,0">
                <GradientStop Color="#FFF8F8F8" Offset="0"/>
                <GradientStop Color="#FFE5E5E5" Offset="1"/>
            </LinearGradientBrush>
            <SolidColorBrush x:Key="{x:Static SystemColors.HighlightTextBrushKey}" Color="Black" />
            <SolidColorBrush x:Key="{x:Static SystemColors.ControlTextBrushKey}" Color="Black" />

            <Storyboard x:Key="HideFlyOuts">
                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.X)" Storyboard.TargetName="FlyOutRight">
                    <EasingDoubleKeyFrame KeyTime="00:00:00.500" Value="1" x:Name="hideFrameRight">
                        <EasingDoubleKeyFrame.EasingFunction>
                            <CubicEase EasingMode="EaseOut" />
                        </EasingDoubleKeyFrame.EasingFunction>
                    </EasingDoubleKeyFrame>
                </DoubleAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.X)" Storyboard.TargetName="FlyOutLeft">
                    <EasingDoubleKeyFrame KeyTime="00:00:00.500" Value="1" x:Name="hideFrameLeft">
                        <EasingDoubleKeyFrame.EasingFunction>
                            <CubicEase EasingMode="EaseOut" />
                        </EasingDoubleKeyFrame.EasingFunction>
                    </EasingDoubleKeyFrame>
                </DoubleAnimationUsingKeyFrames>
            </Storyboard>
            <Storyboard x:Key="ShowFlyOuts">
                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.X)" Storyboard.TargetName="FlyOutRight">
                    <EasingDoubleKeyFrame KeyTime="00:00:00.600" Value="0" x:Name="showFrame" >
                        <EasingDoubleKeyFrame.EasingFunction>
                            <CubicEase EasingMode="EaseOut" />
                        </EasingDoubleKeyFrame.EasingFunction>
                    </EasingDoubleKeyFrame>
                </DoubleAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.X)" Storyboard.TargetName="FlyOutLeft">
                    <EasingDoubleKeyFrame KeyTime="00:00:00.600" Value="0" x:Name="showFrameLeft" >
                        <EasingDoubleKeyFrame.EasingFunction>
                            <CubicEase EasingMode="EaseOut" />
                        </EasingDoubleKeyFrame.EasingFunction>
                    </EasingDoubleKeyFrame>
                </DoubleAnimationUsingKeyFrames>
            </Storyboard>

            <Style TargetType="{x:Type TabItem}">
                <Style.Triggers>
                    <DataTrigger Binding="{Binding RelativeSource={RelativeSource AncestorType=TabControl}, Path=Items.Count}" 
           Value="1">
                        <Setter Property="Visibility" Value="Hidden"/>
                    </DataTrigger>
                </Style.Triggers>
            </Style>

            <Style TargetType="TextBlock" x:Key="HeaderStyle">
                <Setter Property="FontSize" Value="{DynamicResource HeaderFontSize}"/>
                <Setter Property="FontFamily" Value="{DynamicResource HeaderFontFamily}"/>
            </Style>
            <Style TargetType="TextBlock" x:Key="SubHeaderStyle">
                <Setter Property="FontSize" Value="{DynamicResource SubHeaderFontSize}"/>
                <Setter Property="FontFamily" Value="{DynamicResource HeaderFontFamily}"/>
                <Setter Property="Margin" Value="0,5"/>
            </Style>
            <Style TargetType="TextBlock" x:Key="ContentStyle">
                <Setter Property="FontSize" Value="{DynamicResource NormalFontSize}"/>
                <Setter Property="FontFamily" Value="{DynamicResource ContentFontFamily}"/>
            </Style>

            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary  x:Name="LocalizationStrings" Source="./Localization/MainWindowStrings-de.xaml" />
                <ResourceDictionary  x:Name="LocalizationStrings2" Source="./Localization/Dialoges-de.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.AnimatedSingleRowTabControl.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Fluent:RibbonWindow.Resources>
    <Grid>
        <DockPanel LastChildFill="True">
            <Fluent:Ribbon DockPanel.Dock="Top" IsEnabled="True" Name="_ribbon" SelectedTabIndex="0" IsQuickAccessToolBarVisible="True" CanQuickAccessLocationChanging="False" Visibility="Visible" AutomaticStateManagement="True" IsMinimized="False">
                <!--Contextual Tab Groups-->
                <Fluent:Ribbon.ContextualGroups>
                    <Fluent:RibbonContextualTabGroup Header="{DynamicResource contexteditorder}" x:Name="AuftragContextGroup" Background="LimeGreen" BorderBrush="LimeGreen"/>
                    <Fluent:RibbonContextualTabGroup Header="{DynamicResource contextcreatearticle}"  Visibility="Collapsed" x:Name="ArtikelContextGroup" Background="Orange" BorderBrush="Orange" />
                    <Fluent:RibbonContextualTabGroup Header="{DynamicResource contextcreatecustomer}" Visibility="Collapsed" x:Name="KundeContextGroup" Background="Tomato" BorderBrush="Tomato" />
                    <Fluent:RibbonContextualTabGroup Header="{DynamicResource contextupdate}" Visibility="Collapsed" x:Name="UpdateContextGroup" Background="Blue" BorderBrush="Blue" />
                    <Fluent:RibbonContextualTabGroup Header="Statistiken" Visibility="Collapsed" x:Name="StatsContextGroup" Background="#FFF2CB1D" BorderBrush="#FFF2CB1D" />
                </Fluent:Ribbon.ContextualGroups>

                <!--Tabs-->
                <Fluent:RibbonTabItem Name="TabAuftrag" Header="{DynamicResource order}">
                    <Fluent:RibbonGroupBox Header="">
                        <Fluent:Button Name="buttonNeuerAuftrag" Header="{DynamicResource createorder}" Icon="Images\auftragadd.png" LargeIcon="Images\auftragadd.png">
                            <Fluent:Button.ToolTip>
                                <Fluent:ScreenTip Title="{DynamicResource createorder}" HelpLabelVisibility="Collapsed" Width="450" Image="Images\auftragadd.png" Text="{DynamicResource createordertooltip}" />
                            </Fluent:Button.ToolTip>
                        </Fluent:Button>
                        <Fluent:Button Name="buttonAuftragBearbeiten" Header="{DynamicResource editorder}" Icon="Images\auftragedit.png" LargeIcon="Images\auftragedit.png" IsEnabled="False">
                            <Fluent:Button.ToolTip>
                                <Fluent:ScreenTip Title="{DynamicResource editorder}" HelpLabelVisibility="Collapsed" Width="450" Image="Images\auftragedit.png" Text="{DynamicResource editordertooltip}" DisableReason="{DynamicResource editordertooltipdisable}"/>
                            </Fluent:Button.ToolTip>
                        </Fluent:Button>
                    </Fluent:RibbonGroupBox>
                    <Fluent:RibbonGroupBox Header="">
                        <Fluent:Button Name="buttonAuftragLoeschen" Header="{DynamicResource deleteorder}" Icon="Images\auftragdelete.png" LargeIcon="Images\auftragdelete.png" IsEnabled="False">
                            <Fluent:Button.ToolTip>
                                <Fluent:ScreenTip Title="{DynamicResource deleteorder}" HelpLabelVisibility="Collapsed" Width="450" Image="Images\auftragdelete.png" Text="{DynamicResource deleteordertooltip}" DisableReason="{DynamicResource deleteordertooltipdisable}"/>
                            </Fluent:Button.ToolTip>
                        </Fluent:Button>
                    </Fluent:RibbonGroupBox>
                    <Fluent:RibbonGroupBox Header="{DynamicResource export}">
                        <Fluent:Button Name="buttonAuftragPDF" Header="{DynamicResource orderaspdf}" Icon="Images\pdf.png" LargeIcon="Images\pdf.png" IsEnabled="False">
                            <Fluent:Button.ToolTip>
                                <Fluent:ScreenTip Title="{DynamicResource orderaspdf}" HelpLabelVisibility="Collapsed" Width="450" Image="Images\pdf.png" Text="{DynamicResource orderaspdftooltip}" DisableReason="{DynamicResource orderaspdftooltipdisable}"/>
                            </Fluent:Button.ToolTip>
                        </Fluent:Button>
                        <Fluent:Button Name="buttonAuftragDrucken" Header="{DynamicResource orderprint}" Icon="Images\print.png" LargeIcon="Images\print.png" IsEnabled="False">
                            <Fluent:Button.ToolTip>
                                <Fluent:ScreenTip Title="{DynamicResource orderprint}" HelpLabelVisibility="Collapsed" Width="450" Image="Images\print.png" Text="{DynamicResource orderprinttooltip}" DisableReason="{DynamicResource orderprinttooltipdisable}"/>
                            </Fluent:Button.ToolTip>
                        </Fluent:Button>
                    </Fluent:RibbonGroupBox>
                    <Fluent:RibbonGroupBox Header="{DynamicResource filter}">
                        <Fluent:RibbonToolBar>
                            <Fluent:RibbonToolBar.LayoutDefinitions>
                                <Fluent:RibbonToolBarLayoutDefinition Size="Large" RowCount="2">
                                    <Fluent:RibbonToolBarRow>
                                        <Fluent:RibbonToolBarControlDefinition Target="comboFilterMonat" Width="127" />
                                    </Fluent:RibbonToolBarRow>
                                    <Fluent:RibbonToolBarRow>
                                        <Fluent:RibbonToolBarControlDefinition Target="comboFilterJahr" Width="127"/>
                                    </Fluent:RibbonToolBarRow>
                                </Fluent:RibbonToolBarLayoutDefinition>
                            </Fluent:RibbonToolBar.LayoutDefinitions>
                            <Fluent:ComboBox IsEditable="True" InputWidth="100" Header="{DynamicResource month}" Name="comboFilterMonat" SelectedIndex="-1" IsReadOnly="True" CanAddToQuickAccessToolBar="False" DropDownHeight="300" Size="Large">
                                <ComboBoxItem Content="{DynamicResource january}" />
                                <ComboBoxItem Content="{DynamicResource february}" />
                                <ComboBoxItem Content="{DynamicResource march}" />
                                <ComboBoxItem Content="{DynamicResource april}" />
                                <ComboBoxItem Content="{DynamicResource may}" />
                                <ComboBoxItem Content="{DynamicResource june}" />
                                <ComboBoxItem Content="{DynamicResource july}" />
                                <ComboBoxItem Content="{DynamicResource august}" />
                                <ComboBoxItem Content="{DynamicResource september}" />
                                <ComboBoxItem Content="{DynamicResource october}" />
                                <ComboBoxItem Content="{DynamicResource november}" />
                                <ComboBoxItem Content="{DynamicResource december}" />
                                <Fluent:ComboBox.ToolTip>
                                    <Fluent:ScreenTip Title="{DynamicResource selectmonth}" HelpLabelVisibility="Collapsed" Width="450" Text="{DynamicResource selectmonthtooltip}"/>
                                </Fluent:ComboBox.ToolTip>
                            </Fluent:ComboBox>
                            <Fluent:ComboBox IsEditable="True" InputWidth="100" Name="comboFilterJahr" ItemsSource="{Binding YearRange}" CanAddToQuickAccessToolBar="False" DropDownHeight="300" Size="Middle">
                                <Fluent:ComboBox.ToolTip>
                                    <Fluent:ScreenTip Title="{DynamicResource selectyear}" HelpLabelVisibility="Collapsed" Width="450" Text="{DynamicResource selectyeartooltip}"/>
                                </Fluent:ComboBox.ToolTip>
                            </Fluent:ComboBox>
                        </Fluent:RibbonToolBar>
                        <Fluent:ToggleButton Name="buttonAuftragFiltern" Header="{DynamicResource showselection}" Icon="Images\filter.png" LargeIcon="Images\filter.png" IsEnabled="False" Size="Large" Margin="5,0,0,0" />
                    </Fluent:RibbonGroupBox>
                    <Fluent:RibbonGroupBox>
                        <Fluent:Button Name="buttonOrderSearch" Header="Schnellzugriff auf Auftrag" Icon="Images\search.png" LargeIcon="Images\search.png" Size="Large" Margin="0,0,0,0" />
                    </Fluent:RibbonGroupBox>
                </Fluent:RibbonTabItem>
                <Fluent:RibbonTabItem Header="{DynamicResource article}" Name="TabArtikel">
                    <Fluent:RibbonGroupBox Header="">
                        <Fluent:Button Name="buttonNeuerArtikel" Header="{DynamicResource createarticle}" Icon="Images\artikeladd.png" LargeIcon="Images\artikeladd.png">
                            <Fluent:Button.ToolTip>
                                <Fluent:ScreenTip Title="{DynamicResource createarticle}" HelpLabelVisibility="Collapsed" Width="450" Image="Images\artikeladd.png" Text="{DynamicResource createarticletooltip}"/>
                            </Fluent:Button.ToolTip>
                        </Fluent:Button>
                        <Fluent:Button Name="buttonArtikelBearbeiten" Header="{DynamicResource editarticle}" Icon="Images\artikeledit.png" LargeIcon="Images\artikeledit.png" IsEnabled="False">
                            <Fluent:Button.ToolTip>
                                <Fluent:ScreenTip Title="{DynamicResource editarticle}" HelpLabelVisibility="Collapsed" Width="450" Image="Images\artikeledit.png" Text="{DynamicResource editarticletooltip}" DisableReason="{DynamicResource editarticletooltipdisable}"/>
                            </Fluent:Button.ToolTip>
                        </Fluent:Button>
                    </Fluent:RibbonGroupBox>
                    <Fluent:RibbonGroupBox>
                        <Fluent:Button Name="buttonArtikelloeschen" Header="{DynamicResource deletearticle}" Icon="Images\artikelremove.png" LargeIcon="Images\artikeldelete.png" IsEnabled="False">
                            <Fluent:Button.ToolTip>
                                <Fluent:ScreenTip Title="{DynamicResource deletearticle}" HelpLabelVisibility="Collapsed" Width="450" Image="Images\artikeldelete.png" Text="{DynamicResource deletearticletooltip}" DisableReason="{DynamicResource deletearticletooltipdisable}"/>
                            </Fluent:Button.ToolTip>
                        </Fluent:Button>
                    </Fluent:RibbonGroupBox>
                    <Fluent:RibbonGroupBox Header="">
                        <Fluent:Button Name="buttonNeueKategorie" Header="Neue Kategorie anlegen" Icon="Images\catladd.png" LargeIcon="Images\catladd.png">
                            <Fluent:Button.ToolTip>
                                <Fluent:ScreenTip Title="Neue Kategorie anlegen" HelpLabelVisibility="Collapsed" Width="450" HelpTopic="Hilfe zur Erstellung einer Kategorie" Image="Images\catladd.png" Text="Mit dieser Funktion können Sie eine neue Kategorie erstellen. Jeder Artikel in der Datenbank lässt sich einer solchen Kategorie zuweisen."/>
                            </Fluent:Button.ToolTip>
                        </Fluent:Button>
                        <Fluent:Button Name="buttonKategorieBearbeiten" Header="Kategorie bearbeiten" Icon="Images\catledit.png" LargeIcon="Images\catledit.png" IsEnabled="False">
                            <Fluent:Button.ToolTip>
                                <Fluent:ScreenTip Title="Kategorie bearbeiten" HelpLabelVisibility="Collapsed" Width="450" HelpTopic="Hilfe zur Erstellung einer Kategorie" Image="Images\catledit.png" Text="Mit dieser Funktion können Sie eine vorhandene Kategorie bearbeiten." DisableReason="Diese Funktion ist noch nicht verfügbar."/>
                            </Fluent:Button.ToolTip>
                        </Fluent:Button>
                    </Fluent:RibbonGroupBox>
                    <Fluent:RibbonGroupBox Header="Exportieren">
                        <Fluent:Button Name="buttonArtikellistePDF" Header="Artikelliste als PDF" Icon="Images\pdf.png" LargeIcon="Images\pdf.png" >
                            <Fluent:Button.ToolTip>
                                <Fluent:ScreenTip Title="Artikelliste als PDF speichern" HelpLabelVisibility="Collapsed" Width="450" HelpTopic="Hilfe zur Erstellung einer Artikelliste" Image="Images\pdf.png" Text="Mit dieser Funktion können Sie eine Artikelliste als PDF speichern." DisableReason="Diese Funktion ist noch nicht verfügbar."/>
                            </Fluent:Button.ToolTip>
                        </Fluent:Button>
                        <Fluent:Button Name="buttonArtikellisteDrucken" Header="Artikelliste drucken" Icon="Images\print.png" LargeIcon="Images\print.png" >
                            <Fluent:Button.ToolTip>
                                <Fluent:ScreenTip Title="Artikelliste drucken" HelpLabelVisibility="Collapsed" Width="450" Image="Images\print.png" Text="Mit dieser Funktion können Sie eine Artikelliste drucken." DisableReason="Diese Funktion ist noch nicht verfügbar."/>
                            </Fluent:Button.ToolTip>
                        </Fluent:Button>
                    </Fluent:RibbonGroupBox>
                    <Fluent:RibbonGroupBox Header="">
                        <Fluent:Button Name="buttonArticleStats" Header="Artikel- statistiken" Icon="Images/chart.png" LargeIcon="Images/chart.png" >
                            <Fluent:Button.ToolTip>
                                <Fluent:ScreenTip Title="Artikelstatistiken" HelpLabelVisibility="Collapsed" Width="450" Image="Images\chart.png" Text="Mit dieser Funktion können Sie Artikelstatistiken visualisieren und als PDF speichern" DisableReason="Diese Funktion ist noch nicht verfügbar."/>
                            </Fluent:Button.ToolTip>
                        </Fluent:Button>
                    </Fluent:RibbonGroupBox>
                </Fluent:RibbonTabItem>
                <Fluent:RibbonTabItem Header="Kunden" Name="TabKunde">
                    <Fluent:RibbonGroupBox Header="">
                        <Fluent:Button Name="buttonNeuerKunde" Header="Neuen Kunden anlegen" Icon="Images\kundehinzufuegen.png" LargeIcon="Images\kundehinzufuegen.png">
                            <Fluent:Button.ToolTip>
                                <Fluent:ScreenTip Title="Neuer Kunde" HelpLabelVisibility="Collapsed" Width="450" HelpTopic="Hilfe zur Erstellung eines neuen Kundens" Image="Images\kundehinzufuegen.png" Text="Mit dieser Funktion können Sie einen neuen Kunden in die Datenbank aufnehmen."/>
                            </Fluent:Button.ToolTip>
                        </Fluent:Button>
                        <Fluent:Button Name="buttonKundeBearbeiten" Header="Kunde bearbeiten" Icon="Images\kundeedit.png" LargeIcon="Images\kundeedit.png" IsEnabled="False">
                            <Fluent:Button.ToolTip>
                                <Fluent:ScreenTip Title="Kunde bearbeiten" HelpLabelVisibility="Collapsed" Width="450" HelpTopic="Hilfe zur Bearbeitung eines Kundens" Image="Images\kundeedit.png" Text="Mit dieser Funktion können Sie einen in der Liste markierten Kundendatensatz bearbeiten." DisableReason="Sie haben keinen Kunden in der Liste ausgewählt."/>
                            </Fluent:Button.ToolTip>
                        </Fluent:Button>
                    </Fluent:RibbonGroupBox>
                    <Fluent:RibbonGroupBox>
                        <Fluent:Button Name="buttonKundeloeschen" Header="Kunde löschen" Icon="Images\kundeloeschen.png" LargeIcon="Images\kundeloeschen.png" IsEnabled="False">
                            <Fluent:Button.ToolTip>
                                <Fluent:ScreenTip Title="Kunde löschen" HelpLabelVisibility="Collapsed" Width="450" HelpTopic="Hilfe zur Löschung eines Kundens" Image="Images\kundeloeschen.png" Text="Mit dieser Funktion können Sie einen in der Liste markierten Kunden aus der Datenbank löschen." DisableReason="Sie haben keinen Kunden in der Liste ausgewählt."/>
                            </Fluent:Button.ToolTip>
                        </Fluent:Button>
                    </Fluent:RibbonGroupBox>
                    <Fluent:RibbonGroupBox Header="Exportieren">
                        <Fluent:Button Name="buttonKundenlistePDF" Header="Kundenliste als PDF" Icon="Images\pdf.png" LargeIcon="Images\pdf.png">
                            <Fluent:Button.ToolTip>
                                <Fluent:ScreenTip Title="Kundenliste als PDF speichern" HelpLabelVisibility="Collapsed" Width="450" HelpTopic="Hilfe zur Erstellung einer Kundenliste" Image="Images\pdf.png" Text="Mit dieser Funktion können Sie eine Kundenliste als PDF speichern." DisableReason="Diese Funktion ist noch nicht verfügbar."/>
                            </Fluent:Button.ToolTip>
                        </Fluent:Button>
                        <Fluent:Button Name="buttonKundenlisteDrucken" Header="Kundenliste drucken" Icon="Images\print.png" LargeIcon="Images\print.png">
                            <Fluent:Button.ToolTip>
                                <Fluent:ScreenTip Title="Kundenliste drucken" HelpLabelVisibility="Collapsed" Width="450" HelpTopic="Hilfe zur Erstellung einer Kundenliste" Image="Images\print.png" Text="Mit dieser Funktion können Sie eine Kundenliste drucken." DisableReason="Diese Funktion ist noch nicht verfügbar."/>
                            </Fluent:Button.ToolTip>
                        </Fluent:Button>
                    </Fluent:RibbonGroupBox>
                    <Fluent:RibbonGroupBox Header="">
                        <Fluent:Button Name="buttonCustomerStats" Header="Kunden- statistiken" Icon="Images/chart.png" LargeIcon="Images/chart.png" >
                            <Fluent:Button.ToolTip>
                                <Fluent:ScreenTip Title="Kundenstatistiken" HelpLabelVisibility="Collapsed" Width="450" HelpTopic="Hilfe zur Erstellung von Kundenstatistiken" Image="Images\chart.png" Text="Mit dieser Funktion können Sie Kundenstatistiken visualisieren und als PDF speichern" DisableReason="Diese Funktion ist noch nicht verfügbar."/>
                            </Fluent:Button.ToolTip>
                        </Fluent:Button>
                    </Fluent:RibbonGroupBox>
                </Fluent:RibbonTabItem>
                <Fluent:RibbonTabItem Header="{DynamicResource settings}" Name="TabVerwaltung" IsEnabled="True">
                    <Fluent:RibbonGroupBox Header="">
                        <Fluent:Button Name="buttonSettings" Header="Einstellungen" Icon="Images/einstellungen.png" LargeIcon="Images/einstellungen.png">
                            <Fluent:Button.ToolTip>
                                <Fluent:ScreenTip Title="Einstellungen" Width="450" HelpLabelVisibility="Collapsed" HelpTopic="Einstellungen" Image="Images/einstellungen.png" Text="Mit dieser Funktion können Sie alle relevanten Parameter und Datensätze erweitern und bearbeiten."/>
                            </Fluent:Button.ToolTip>
                        </Fluent:Button>
                        <Fluent:Button Name="buttonImportieren" Header="Daten aus anderen Programmen importieren" Icon="Images/import.png" LargeIcon="Images/import.png" Visibility="Visible">
                            <Fluent:Button.ToolTip>
                                <Fluent:ScreenTip Title="Daten importieren" HelpLabelVisibility="Collapsed" Width="450" HelpTopic="Einstellungen" Image="Images/import.png" Text="Mit dieser Funktion können Sie Datensätze aus anderen Programmen importieren."/>
                            </Fluent:Button.ToolTip>
                        </Fluent:Button>
                    </Fluent:RibbonGroupBox>
                    <Fluent:RibbonGroupBox Header="Speichern" Visibility="Collapsed" Name="SettingsLayoutSave">
                        <Fluent:Button Name="buttonLayoutSave" Header="Änderungen Speichern" Icon="Images/save.png" LargeIcon="Images/save.png">
                            <Fluent:Button.ToolTip>
                                <Fluent:ScreenTip Title="Änderungen speichern" HelpLabelVisibility="Collapsed" Width="450" HelpTopic="Layout Änderungen" Image="Images/save.png" Text="Mit dieser Funktion können Sie Änderungen bei den Layoutparametern speichern."/>
                            </Fluent:Button.ToolTip>
                        </Fluent:Button>
                    </Fluent:RibbonGroupBox>
                </Fluent:RibbonTabItem>

                <!--Contextual Tabs-->
                <Fluent:RibbonTabItem Header="    Aktionen    " Group="{Binding ElementName=ArtikelContextGroup}" IsEnabled="True" Name="TabArtikelNeu" Visibility="{Binding ElementName=ArtikelContextGroup,Path=Visibility}">
                    <Fluent:RibbonGroupBox Header="" Name="ArtikelVorlageGroupBox">
                        <Fluent:Button Name="buttonArtikelVorlage" Header="Artikel aus Vorlage erstellen" Icon="Images\artikelvorlage.png" LargeIcon="Images\artikelvorlage.png">
                            <Fluent:Button.ToolTip>
                                <Fluent:ScreenTip Title="Artikel aus Vorlage erstellen" Width="450" HelpTopic="Artikel" Image="Images/artikelvorlage.png" Text="Mit dieser Funktion wählen Sie einen bereits vorhandenen Artikel aus der Datenbank aus. Die Daten werden kopiert und können dann von Ihnen verändert werden." HelpLabelVisibility="Collapsed"/>
                            </Fluent:Button.ToolTip>
                        </Fluent:Button>
                    </Fluent:RibbonGroupBox>
                    <Fluent:RibbonGroupBox Header="">
                        <Fluent:Button Name="buttonArtikelzwischenspeichern" Header="Zwischen- speichern" Icon="Images\save.png" LargeIcon="Images\save.png">
                            <Fluent:Button.ToolTip>
                                <Fluent:ScreenTip Title="Artikel zwischenspeichern" HelpLabelVisibility="Collapsed" Width="450" HelpTopic="Artikel" Image="Images/save.png" Text="Mit dieser Funktion speichern Sie den aktuellen Artikel. Danach können Sie die Arbeiten an diesem Artikel normal fortführen."/>
                            </Fluent:Button.ToolTip>
                        </Fluent:Button>
                        <Fluent:Button Name="buttonArtikelSpeichern" Header="Speichern und Zurück" Icon="Images\saveback.png" LargeIcon="Images\saveback.png">
                            <Fluent:Button.ToolTip>
                                <Fluent:ScreenTip Title="Artikel speichern und zurück" HelpLabelVisibility="Collapsed" Width="450" HelpTopic="Artikel" Image="Images/saveback.png" Text="Mit dieser Funktion speichern Sie den aktuellen Artikel. Danach wird das Feld zum Bearbeiten der Artikeldaten geschlossen."/>
                            </Fluent:Button.ToolTip>
                        </Fluent:Button>
                    </Fluent:RibbonGroupBox>
                    <Fluent:RibbonGroupBox Header="">
                        <Fluent:Button Name="buttonArtikelAbbrechen" Header="Abbrechen" Icon="Images\cancel.png" LargeIcon="Images\cancel.png">
                            <Fluent:Button.ToolTip>
                                <Fluent:ScreenTip Title="Abbrechen" Width="450" HelpLabelVisibility="Collapsed" HelpTopic="Artikel" Image="Images/cancel.png" Text="Mit dieser Funktion brechen Sie den aktuellen Vorgang ab. Änderungen werden nicht gespeichert."/>
                            </Fluent:Button.ToolTip>
                        </Fluent:Button>
                    </Fluent:RibbonGroupBox>
                </Fluent:RibbonTabItem>
                <Fluent:RibbonTabItem Header="    Aktionen    " Group="{Binding ElementName=KundeContextGroup}" IsEnabled="True" Name="TabKundeNeu" Visibility="{Binding ElementName=KundeContextGroup,Path=Visibility}">
                    <Fluent:RibbonGroupBox Header="">
                        <Fluent:Button Name="buttonKundezwischenspeichern" Header="Zwischen- speichern" Icon="Images\save.png" LargeIcon="Images\save.png">
                            <Fluent:Button.ToolTip>
                                <Fluent:ScreenTip Title="Kunde zwischenspeichern" HelpLabelVisibility="Collapsed" Width="450" HelpTopic="Kunde" Image="Images/save.png" Text="Mit dieser Funktion speichern Sie den aktuellen Kunden. Danach können Sie die Arbeiten an diesem Kunden normal fortführen."/>
                            </Fluent:Button.ToolTip>
                        </Fluent:Button>
                        <Fluent:Button Name="buttonKundeSpeichern" Header="Speichern und Zurück" Icon="Images\saveback.png" LargeIcon="Images\saveback.png">
                            <Fluent:Button.ToolTip>
                                <Fluent:ScreenTip Title="Kunde speichern und zurück" HelpLabelVisibility="Collapsed" Width="450" HelpTopic="Kunde" Image="Images/saveback.png" Text="Mit dieser Funktion speichern Sie den aktuellen Kunden. Danach wird das Feld zum Bearbeiten der Kundendaten geschlossen." />
                            </Fluent:Button.ToolTip>
                        </Fluent:Button>
                    </Fluent:RibbonGroupBox>
                    <Fluent:RibbonGroupBox Header="">
                        <Fluent:Button Name="buttonKundenAbbrechen" Header="Abbrechen" Icon="Images\cancel.png" LargeIcon="Images\cancel.png">
                            <Fluent:Button.ToolTip>
                                <Fluent:ScreenTip Title="Abbrechen" Width="450" HelpLabelVisibility="Collapsed" HelpTopic="Auftrag" Image="Images/cancel.png" Text="Mit dieser Funktion brechen Sie den aktuellen Vorgang ab. Änderungen werden nicht gespeichert."/>
                            </Fluent:Button.ToolTip>
                        </Fluent:Button>
                    </Fluent:RibbonGroupBox>
                    <Fluent:RibbonGroupBox Header="Kundenstatistik" Name="RibbonGroupBoxCustomerStats" Visibility="Collapsed">
                        <Fluent:Button Name="buttonKundenStatsStartDate" Header="Startdatum ändern" Icon="Images\calendarstart.png" LargeIcon="Images\calendarstart.png">
                            <Fluent:Button.ToolTip>
                                <Fluent:ScreenTip Title="Startdatum ändern" HelpLabelVisibility="Collapsed" Width="450" HelpTopic="Auftrag" Image="Images/calendarstart.png" Text="Mit dieser Funktion ändern Sie den Beginn des Zeitraums, der von der Statistik erfasst wird."/>
                            </Fluent:Button.ToolTip>
                        </Fluent:Button>
                        <Fluent:Button Name="buttonKundenStatsEndDate" Header="Enddatum ändern" Icon="Images\calendarend.png" LargeIcon="Images\calendarend.png">
                            <Fluent:Button.ToolTip>
                                <Fluent:ScreenTip Title="Enddatum ändern" HelpLabelVisibility="Collapsed" Width="450" HelpTopic="Auftrag" Image="Images/calendarend.png" Text="Mit dieser Funktion ändern Sie das Ende des Zeitraums, der von der Statistik erfasst wird."/>
                            </Fluent:Button.ToolTip>
                        </Fluent:Button>
                    </Fluent:RibbonGroupBox>
                </Fluent:RibbonTabItem>
                <Fluent:RibbonTabItem Header="Updates anzeigen" Group="{Binding ElementName=UpdateContextGroup}" IsEnabled="True" Name="TabUpdate" Visibility="{Binding ElementName=UpdateContextGroup,Path=Visibility}">

                </Fluent:RibbonTabItem>
                <Fluent:RibbonTabItem Header="    Aktionen    " Group="{Binding ElementName=StatsContextGroup}" Name="TabStats">
                    <Fluent:RibbonGroupBox>
                        <Fluent:Button Name="StatsPDF" Header="Statistik als PDF speichern" Icon="Images\pdf.png" LargeIcon="Images\pdf.png" IsEnabled="True">
                            <!--<Fluent:Button.ToolTip>
                                <Fluent:ScreenTip Title="Kundenliste als PDF speichern" HelpLabelVisibility="Collapsed" Width="450" HelpTopic="Hilfe zur Erstellung einer Kundenliste" Image="Images\pdf.png" Text="Mit dieser Funktion können Sie eine Kundenliste als PDF speichern." DisableReason="Diese Funktion ist noch nicht verfügbar."/>
                            </Fluent:Button.ToolTip>-->
                        </Fluent:Button>
                        <Fluent:Button Name="StatsPrint" Header="Statistik drucken" Icon="Images\print.png" LargeIcon="Images\print.png" IsEnabled="True">
                            <!--<Fluent:Button.ToolTip>
                                <Fluent:ScreenTip Title="Kundenliste drucken" HelpLabelVisibility="Collapsed" Width="450" HelpTopic="Hilfe zur Erstellung einer Kundenliste" Image="Images\print.png" Text="Mit dieser Funktion können Sie eine Kundenliste drucken." DisableReason="Diese Funktion ist noch nicht verfügbar."/>
                            </Fluent:Button.ToolTip>-->
                        </Fluent:Button>
                    </Fluent:RibbonGroupBox>
                    <Fluent:RibbonGroupBox>
                        <Fluent:Button Name="StatsBack" Header="Zurück" Icon="Images\back.png" LargeIcon="Images\back.png"/>
                    </Fluent:RibbonGroupBox>
                </Fluent:RibbonTabItem>
                
                <!--Backstage-->
                <Fluent:Ribbon.Menu>
                    <Fluent:Backstage Header="Menü" Name="BackStageMenu" Background="#FF5195B7">
                        <Fluent:BackstageTabControl Name="BackStageTabControl" >
                            <Fluent:BackstageTabItem Header="Übersicht" Padding="0,30,0,0" Margin="0,30,0,0" Name="BackStageOverViewItem">
                                <metro:MetroContentControl>
                                    <TabControl Style="{StaticResource InnerBackstageTabControlStyle}" Margin="20,5,20,5" Name="TabControl2">
                                    <Fluent:SeparatorTabItem Header="Firmenübersicht"></Fluent:SeparatorTabItem>
                                        <TabItem Visibility="Collapsed">
                                        <TabItem.Header>
                                            <StackPanel Orientation="Horizontal">
                                                <Image Source="Images\infoaddress.png"  Width="48" Height="48" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="0,0,4,0"></Image>
                                                <TextBlock >Firmendaten anzeigen<LineBreak/>
                                                <Run Foreground="DimGray" Text="Anzeigen der Adresse, Steuernummer, etc."></Run>
                                                </TextBlock>
                                            </StackPanel>
                                        </TabItem.Header>
                                        <Grid Name="GridFirmendatenzeigen">
                                            <Label Content="Firmendaten" Height="28" HorizontalAlignment="Left" Margin="26,18,0,0" Name="Label102" VerticalAlignment="Top" FontSize="13" FontWeight="Bold" />
                                            <Label Content="Firmenname:" Height="28" HorizontalAlignment="Left" Margin="26,63,0,0" Name="Label103" VerticalAlignment="Top" />
                                            <Label Content="Straße / Nr.:" Height="28" HorizontalAlignment="Left" Margin="26,93,0,0" Name="Label104" VerticalAlignment="Top" />
                                            <Label Content="PLZ / Stadt:" Height="28" HorizontalAlignment="Left" Margin="26,122,0,0" Name="Label105" VerticalAlignment="Top" />
                                            <Label Content="USt. ID:" Height="28" HorizontalAlignment="Left" Margin="26,165,0,0" Name="Label106" VerticalAlignment="Top" />
                                            <Label Content="Steuernummer:" Height="28" HorizontalAlignment="Left" Margin="26,196,0,0" Name="Label107" VerticalAlignment="Top" />
                                            <Label Content="Label" Height="28" HorizontalAlignment="Left" Margin="123,63,0,0" Name="Label108" VerticalAlignment="Top" />
                                            <Label Content="Label" Height="28" HorizontalAlignment="Left" Margin="123,93,0,0" Name="Label109" VerticalAlignment="Top" />
                                            <Label Content="Label" Height="28" HorizontalAlignment="Left" Margin="123,122,0,0" Name="Label110" VerticalAlignment="Top" />
                                            <Label Content="Label" Height="28" HorizontalAlignment="Left" Margin="123,165,0,0" Name="Label111" VerticalAlignment="Top" />
                                            <Label Content="Label" Height="28" HorizontalAlignment="Left" Margin="123,196,0,0" Name="Label112" VerticalAlignment="Top" />
                                            <!--<Button Content="Bearbeiten" Height="23" HorizontalAlignment="Left" Margin="26,230,0,0" Name="Button15" VerticalAlignment="Top" Width="75" />-->
                                        </Grid>

                                    </TabItem>
                                    <TabItem IsSelected="False" Name="TabItem9" Visibility="Collapsed">
                                        <TabItem.Header>
                                            <StackPanel Orientation="Horizontal">
                                                <Image Source="Images\edit.png"  Width="48" Height="48" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="0,0,4,0"></Image>
                                                <TextBlock >Firmendaten ändern<LineBreak/>
                                                <Run Foreground="DimGray" Text="Ändern Sie Anschrift und Ähnliches."></Run>
                                                </TextBlock>
                                            </StackPanel>
                                        </TabItem.Header>
                                        <Grid Name="GridFirmendatenBearbeiten">
                                            <Label Content="Firmenname:" Height="28" HorizontalAlignment="Left" Margin="26,63,0,0" Name="BScLabel1" VerticalAlignment="Top" />
                                            <Label Content="Straße / Nr.:" Height="28" HorizontalAlignment="Left" Margin="26,93,0,0" Name="BScLabel2" VerticalAlignment="Top" />
                                            <TextBox Height="23" HorizontalAlignment="Left" Margin="123,93,0,0" Name="BScTextBox2" VerticalAlignment="Top" Width="216" BorderBrush="#FF9A9C9E" />
                                            <TextBox Height="23" HorizontalAlignment="Left" Margin="345,93,0,0" Name="BScTextBox3" VerticalAlignment="Top" Width="62" BorderBrush="#FF9A9C9E" />
                                            <Label Content="PLZ / Stadt:" Height="28" HorizontalAlignment="Left" Margin="26,122,0,0" Name="BScLabel3" VerticalAlignment="Top" />
                                            <TextBox Height="23" HorizontalAlignment="Left" Margin="123,122,0,0" Name="BScTextBox4" VerticalAlignment="Top" Width="66" BorderBrush="#FF9A9C9E" />
                                            <TextBox Height="23" HorizontalAlignment="Left" Margin="195,122,0,0" Name="BScTextBox5" VerticalAlignment="Top" Width="212" BorderBrush="#FF9A9C9E" />
                                            <Label Content="USt. ID:" Height="28" HorizontalAlignment="Left" Margin="26,165,0,0" Name="BScLabel14" VerticalAlignment="Top" />
                                            <Label Content="Steuernummer:" Height="28" HorizontalAlignment="Left" Margin="26,196,0,0" Name="BScLabel5" VerticalAlignment="Top" />
                                            <TextBox BorderBrush="#FF9A9C9E" Height="23" HorizontalAlignment="Left" Margin="123,167,0,0" Name="BScTextBox6" VerticalAlignment="Top" Width="284" />
                                            <TextBox BorderBrush="#FF9A9C9E" Height="23" HorizontalAlignment="Left" Margin="123,198,0,0" Name="BScTextBox7" VerticalAlignment="Top" Width="284" />
                                            <Button Content="Speichern" Height="23" HorizontalAlignment="Left" Margin="332,227,0,0" Name="BScButton1" VerticalAlignment="Top" Width="75" />
                                            <Label Content="Firmendaten bearbeiten" Height="28" HorizontalAlignment="Left" Margin="26,18,0,0" Name="Labelc75" VerticalAlignment="Top" FontSize="13" FontWeight="Bold" />
                                            <Label Height="28" HorizontalAlignment="Left" Margin="123,63,0,0" Name="Label117" VerticalAlignment="Top" Width="284" />
                                        </Grid>
                                    </TabItem>
                                    <TabItem IsSelected="True" IsEnabled="True" Name="BSTIStats">
                                            <TabItem.Header>
                                                <StackPanel Orientation="Horizontal">
                                                    <Image Source="Images\chart.png"  Width="48" Height="48" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="0,0,4,0"></Image>
                                                    <TextBlock>Statistiken<LineBreak/>
                                                <Run Foreground="DimGray" Text="Visualisierte Statistiken über Firmenumsatz, etc."></Run>
                                                    </TextBlock>
                                                </StackPanel>
                                            </TabItem.Header>
                                            <Grid>
                                                <charting:Chart x:Name="chart2" Width="{Binding ElementName=Helper,Path=ActualWidth}" Height="{Binding ElementName=Helper,Path=ActualHeight}" FontSize="13" BorderBrush="#00000000" Title="Monatlicher Umsatz in €">
                                                    <charting:Chart.Series>
                                                        <!--<charting:LineSeries ItemsSource="{Binding}" DependentValueBinding="{Binding Path=Value.Amount}" IndependentValueBinding="{Binding Path=Key}" IsSelectionEnabled="True" Title="Monatlicher Umsatz in €"/>-->
                                                        <!--<charting:PieSeries ItemsSource="{Binding}" DependentValueBinding="{Binding Path=Value.Amount}" IndependentValueBinding="{Binding Path=Key}" IsSelectionEnabled="True" Title="Monatlicher Umsatz in €" />-->
                                                        <charting:ColumnSeries ItemsSource="{Binding}" DependentValueBinding="{Binding Path=Value.Amount}" IndependentValueBinding="{Binding Path=DateString}" IsSelectionEnabled="True" Title="Monatlicher Umsatz in €"/>
                                                        <!--<charting:ScatterSeries ItemsSource="{Binding}" DependentValueBinding="{Binding Path=Value.Amount}" IndependentValueBinding="{Binding Path=Key}" IsSelectionEnabled="True" Title="Monatlicher Umsatz in €"/>-->
                                                        <!--<charting:BarSeries ItemsSource="{Binding}" DependentValueBinding="{Binding Path=Value.Amount}" IndependentValueBinding="{Binding Path=Key}" IsSelectionEnabled="True" Title="Monatlicher Umsatz in €"/>-->
                                                        <!--<charting:AreaSeries ItemsSource="{Binding}" DependentValueBinding="{Binding Path=Value.Amount}" IndependentValueBinding="{Binding Path=Key}" IsSelectionEnabled="True" Title="Monatlicher Umsatz in €"/>-->
                                                    </charting:Chart.Series>
                                                    <charting:Chart.Axes>
                                                        <charting:LinearAxis Orientation="Y" ShowGridLines="True" Minimum="0">
                                                            <charting:LinearAxis.AxisLabelStyle >
                                                                <Style TargetType="charting:AxisLabel">
                                                                    <Setter Property="StringFormat" Value="{}{0:f2} €"/>
                                                                </Style>
                                                            </charting:LinearAxis.AxisLabelStyle>
                                                        </charting:LinearAxis>
                                                    </charting:Chart.Axes>
                                                    <charting:Chart.LegendStyle>
                                                        <Style TargetType="Control">
                                                            <Setter Property="Width" Value="0"/>
                                                            <Setter Property="Height" Value="0"/>
                                                        </Style>
                                                    </charting:Chart.LegendStyle>
                                                </charting:Chart>
                                            </Grid>
                                        </TabItem>
                                    </TabControl>
                                </metro:MetroContentControl>
                            </Fluent:BackstageTabItem>
                            <Fluent:BackstageTabItem Header="Firmen verwalten" Name="BackStageManageCompanyItem">
                                <metro:MetroContentControl>
                                    <TabControl Margin="20,5" Style="{DynamicResource InnerBackstageTabControlStyle}" Name="BackStageFirmenWahl">
                                    <Fluent:SeparatorTabItem Header="Firma wählen" MinWidth="160" />
                                    <Fluent:SeparatorTabItem Header="Neue Firma" Name="BackStageSeperator"/>
                                    <TabItem Header="Neue Firma anlegen" Name="BackStageNeueFirma">
                                        <Grid>
                                            <Label Content="Firmenname:" Height="28" HorizontalAlignment="Left" Margin="26,63,0,0" Name="BSLabel1" VerticalAlignment="Top" />
                                            <Label Content="Straße / Nr.:" Height="28" HorizontalAlignment="Left" Margin="26,93,0,0" Name="BSLabel2" VerticalAlignment="Top" />
                                            <TextBox Height="23" HorizontalAlignment="Left" Margin="123,65,0,0" Name="BSTextBox1" VerticalAlignment="Top" Width="284" BorderBrush="#FF9A9C9E" />
                                            <TextBox Height="23" HorizontalAlignment="Left" Margin="123,93,0,0" Name="BSTextBox2" VerticalAlignment="Top" Width="216" BorderBrush="#FF9A9C9E" />
                                            <TextBox Height="23" HorizontalAlignment="Left" Margin="345,93,0,0" Name="BSTextBox3" VerticalAlignment="Top" Width="62" BorderBrush="#FF9A9C9E" />
                                            <Label Content="PLZ / Stadt:" Height="28" HorizontalAlignment="Left" Margin="26,122,0,0" Name="BSLabel3" VerticalAlignment="Top" />
                                            <TextBox Height="23" HorizontalAlignment="Left" Margin="123,122,0,0" Name="BSTextBox4" VerticalAlignment="Top" Width="66" BorderBrush="#FF9A9C9E" />
                                            <TextBox Height="23" HorizontalAlignment="Left" Margin="195,122,0,0" Name="BSTextBox5" VerticalAlignment="Top" Width="212" BorderBrush="#FF9A9C9E" />
                                            <Label Content="USt. ID:" Height="28" HorizontalAlignment="Left" Margin="26,165,0,0" Name="BSLabel14" VerticalAlignment="Top" />
                                            <Label Content="Steuernummer:" Height="28" HorizontalAlignment="Left" Margin="26,196,0,0" Name="BSLabel5" VerticalAlignment="Top" />
                                            <TextBox BorderBrush="#FF9A9C9E" Height="23" HorizontalAlignment="Left" Margin="123,167,0,0" Name="BSTextBox6" VerticalAlignment="Top" Width="284" />
                                            <TextBox BorderBrush="#FF9A9C9E" Height="23" HorizontalAlignment="Left" Margin="123,198,0,0" Name="BSTextBox7" VerticalAlignment="Top" Width="284" />
                                            <Button Content="Weiter" Height="23" HorizontalAlignment="Left" Margin="521,239,0,0" Name="BSButton1" VerticalAlignment="Top" Width="75" />
                                            <CheckBox Content="Daten aus anderen Programmen importieren" Height="16" HorizontalAlignment="Left" Margin="261,243,0,0" Name="CheckBox1" VerticalAlignment="Top" />
                                            <Label Content="Neue Firma anlegen" Height="28" HorizontalAlignment="Left" Margin="26,18,0,0" Name="Label75" VerticalAlignment="Top" FontSize="13" FontWeight="Bold" />
                                        </Grid>
                                    </TabItem>
                                </TabControl>
                                </metro:MetroContentControl>
                                
                            </Fluent:BackstageTabItem>
                            <Fluent:BackstageTabItem Header="Sichern &amp; Wiederherstellen" >
                                <metro:MetroContentControl>
                                    <TabControl Style="{DynamicResource InnerBackstageTabControlStyle}" Margin="15,0,0,0" SelectedIndex="1">
                                        <Fluent:SeparatorTabItem Header="Sichern &amp; Wiederherstellen" MinWidth="200"/>
                                        <TabItem>
                                            <TabItem.Header>
                                                <StackPanel Orientation="Horizontal">
                                                    <Image Source="pack://application:,,,/Biller;component/Images/backup.png" Width="48" Height="48" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="0,0,4,0"></Image>
                                                    <TextBlock VerticalAlignment="Center" FontSize="13">Sichern</TextBlock>
                                                </StackPanel>
                                            </TabItem.Header>
                                            <Grid Margin="15,0,0,0">
                                                <StackPanel>
                                                    <Fluent:SeparatorTabItem Header="Sichern" MinWidth="200"/>
                                                    <Grid Margin="20,20,0,0">
                                                        <Grid Width="81" HorizontalAlignment="Left">
                                                            <Fluent:Button Style="{DynamicResource ButtonBackstageStyle}" Header="Sichern" Name="ButtonSichern" Height="85" HorizontalAlignment="Left"  VerticalAlignment="Top" Width="81" Icon="Images/backup.png" LargeIcon="Images/backup.png"  />
                                                        </Grid>
                                                        <Grid Margin="101,0,0,0">
                                                            <StackPanel VerticalAlignment="Center">
                                                                <TextBlock Text="Beachten sie folgende Hinweise für die Sicherheit Ihrer Daten:" TextWrapping="Wrap" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="0,0,0,5" />
                                                                <StackPanel Orientation="Horizontal" VerticalAlignment="Center" Margin="0,0,0,5" ClipToBounds="False">
                                                                    <Rectangle Width="7" Height="7" Fill="DarkGray" StrokeThickness="0" Margin="0,5,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" />
                                                                    <TextBlock Text="Führen sie regelmäßig Datensicherungen durch, um einen Datenverlust vorzubeugen." Margin="7,0,0,0" TextWrapping="Wrap" />
                                                                </StackPanel>
                                                                <StackPanel Orientation="Horizontal" VerticalAlignment="Center">
                                                                    <Rectangle Width="7" Height="7" Fill="DarkGray" StrokeThickness="0" Margin="0,5,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" />
                                                                    <TextBlock Text="Speichern Sie Ihre Datensicherungen auch auf mehreren Geräten und verwahren Sie diese sicher." Margin="7,0,0,0" TextWrapping="Wrap" />
                                                                </StackPanel>
                                                                <ProgressBar Name="ProgressBar3" Visibility="Collapsed" Height="15" Margin="0,5,0,0" />
                                                            </StackPanel>
                                                        </Grid>
                                                    </Grid>
                                                </StackPanel>
                                            </Grid>
                                        </TabItem>
                                        <TabItem>
                                            <TabItem.Header>
                                                <StackPanel Orientation="Horizontal">
                                                    <Image Source="pack://application:,,,/Biller;component/Images/restore.png" Width="48" Height="48" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="0,0,4,0"></Image>
                                                    <TextBlock VerticalAlignment="Center" FontSize="13">Wiederherstellen</TextBlock>
                                                </StackPanel>
                                            </TabItem.Header>
                                            <Grid Margin="15,0,0,0">
                                                <StackPanel>
                                                    <Fluent:SeparatorTabItem Header="Wiederherstellen" MinWidth="200"/>
                                                    <Grid Margin="20,20,0,0">
                                                        <Grid Width="81" HorizontalAlignment="Left">
                                                            <Fluent:Button Style="{DynamicResource ButtonBackstageStyle}" Header="Wieder-herstellen" Name="ButtonWiederherstellen" Height="85" HorizontalAlignment="Left"  VerticalAlignment="Top" Width="81" Icon="Images/restore.png" LargeIcon="Images/restore.png"  />
                                                        </Grid>
                                                        <Grid Margin="101,0,0,0">
                                                            <StackPanel VerticalAlignment="Center">
                                                                <TextBlock Text="Beachten sie folgende Hinweise für die Wiederherstellung Ihrer Daten:" TextWrapping="Wrap" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="0,0,0,5" />
                                                                <StackPanel Orientation="Horizontal" VerticalAlignment="Center" ClipToBounds="False" Margin="0,0,0,5">
                                                                    <Rectangle Width="7" Height="7" Fill="DarkGray" StrokeThickness="0" Margin="0,5,0,0" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                                                    <TextBlock Text="Führen sie regelmäßig Datensicherungen durch, um bei einem Datenverlust möglichst aktuelle Daten zu haben." Margin="7,0,0,0" TextWrapping="Wrap" HorizontalAlignment="Left" VerticalAlignment="Center"/>
                                                                </StackPanel>
                                                                <StackPanel Orientation="Horizontal" VerticalAlignment="Center">
                                                                    <Rectangle Width="7" Height="7" Fill="DarkGray" StrokeThickness="0" Margin="0,5,0,0" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                                                    <TextBlock Text="Datenbanken, die zum Zeitpunkt der Sicherung noch nicht vorhanden waren, bleiben unangetastet." Margin="7,0,0,0" TextWrapping="Wrap" />
                                                                </StackPanel>
                                                                <ProgressBar Name="ProgressBar4" Visibility="Collapsed" Height="15" Margin="0,5,0,0" />
                                                            </StackPanel>
                                                        </Grid>
                                                    </Grid>
                                                    <Fluent:SeparatorTabItem Header="Letzte Sicherungen" MinWidth="200" Margin="0,20,0,0" />
                                                    <TextBlock Text="Wählen Sie aus der unteren Liste einen Eintrag aus, um mit der Rücksicherung zu beginnen:" Margin="30,20,0,0" TextWrapping="Wrap" />
                                                    <TabControl Style="{DynamicResource InnerBackstageTabControlStyle}" Margin="30,10,200,0" Name="TabControlLastSaves" MinHeight="100" />
                                                </StackPanel>
                                            </Grid>
                                        </TabItem>
                                    </TabControl>
                                </metro:MetroContentControl>
                            </Fluent:BackstageTabItem>
                            <Fluent:BackstageTabItem Header="Erweiterungen">
                                <metro:MetroContentControl>
                                    <Grid>
                                        <Grid.ColumnDefinitions>
                                            <ColumnDefinition Width="*" />
                                            <ColumnDefinition Width="*" />
                                        </Grid.ColumnDefinitions>
                                        <Label Content="Add-In Browser" Height="28" HorizontalAlignment="Left" Margin="6,6,0,0" Name="Label113" VerticalAlignment="Top" FontSize="14" FontWeight="Bold" Foreground="DimGray"/>
                                        <Label Content="Add-Ins sind Erweiterungen, die den Funktionsumfang des Programmes erheblich vergrößern können." Height="28" HorizontalAlignment="Left" Margin="10,40,0,0" Name="Label114" VerticalAlignment="Top" Grid.ColumnSpan="2" />
                                        <Label Content="Verfügbare Erweiterungern" FontSize="12" FontWeight="Bold" Height="28" HorizontalAlignment="Left" Margin="10,74,0,0" Name="Label115" VerticalAlignment="Top" />
                                        <ListView Height="256" Margin="15,108,11,0" Name="ListViewAddIn" VerticalAlignment="Top" ItemsSource="{Binding}">
                                            <ListView.View>
                                                <GridView>
                                                    <GridViewColumn Header="Name" DisplayMemberBinding="{Binding Name}" Width="{Binding ElementName=helperWidthAddin1, Path=ActualWidth}"/>
                                                    <GridViewColumn Header="Größe" DisplayMemberBinding="{Binding Size}" Width="{Binding ElementName=helperWidthAddin2, Path=ActualWidth}"/>
                                                </GridView>
                                            </ListView.View>
                                        </ListView>
                                        <Grid Visibility="Hidden" Margin="15,108,11,0" Height="256">
                                            <Grid.ColumnDefinitions>
                                                <!--Width is bound to width of the first GridViewColumn -->
                                                <ColumnDefinition Width="2*" MaxWidth="430" />
                                                <ColumnDefinition Width="*" MaxWidth="150" />
                                                <ColumnDefinition Width="12px"/>
                                            </Grid.ColumnDefinitions>
                                            <Grid Grid.Column="0" x:Name="helperWidthAddin1"/>
                                            <Grid Grid.Column="1" x:Name="helperWidthAddin2"/>
                                        </Grid>
                                        <TextBlock Height="172" Margin="8,134,6,0" Name="TextBlock7" Text="" VerticalAlignment="Top" TextWrapping="Wrap" Grid.Column="1" />
                                        <Label Content="Informationen" Height="28" HorizontalAlignment="Left" Margin="8,108,0,0" Name="Label116" VerticalAlignment="Top" FontWeight="Bold" Grid.Column="1" />
                                        <Button Content="Erweiterung installieren" Height="23" Margin="8,312,248,0" Name="Button14" VerticalAlignment="Top" IsEnabled="False" Grid.Column="1" />
                                        <ProgressBar Height="23" Margin="8,341,248,0" Name="ProgressBar2" VerticalAlignment="Top" Grid.Column="1" />
                                        <Label Content="Neue Erweiterungen müssen zum ersten Gebrauch aktiviert werden. Dies können sie unter dem Tab Einstellungen vornehmen." Height="28" HorizontalAlignment="Left" Margin="15,390,0,0" Name="Label15" VerticalAlignment="Top" Grid.ColumnSpan="2" />
                                        <Button Content="Zu diesem Tab wechseln" Height="23" HorizontalAlignment="Left" Margin="15,415,0,0" Name="Button1" VerticalAlignment="Top" Width="190" />
                                    </Grid>
                                </metro:MetroContentControl>
                            </Fluent:BackstageTabItem>
                            <Fluent:BackstageTabItem Header="Lizenzen">
                                <metro:MetroContentControl>
                                    <TabControl Margin="20,5" Style="{DynamicResource InnerBackstageTabControlStyle}" Name="BackStageLicenses">
                                        <Fluent:SeparatorTabItem Header="Übersicht" Name="LicensesFirstItem" MinWidth="160"/>
                                    </TabControl>
                                </metro:MetroContentControl>
                            </Fluent:BackstageTabItem>
                            <Fluent:BackstageTabItem Header="Kontakt">
                                <metro:MetroContentControl Margin="12,0,0,0">
                                    <StackPanel>
                                        <Fluent:SeparatorTabItem Style="{DynamicResource InnerBackstageSeparatorTabItemStyle}" Header="Kontakt &amp; Sonstiges" Margin="12,6,0,0"/>
                                        <Grid Margin="20,20,0,0" VerticalAlignment="Top">
                                            <Grid Width="81" HorizontalAlignment="Left">
                                                <Fluent:Button Style="{DynamicResource ButtonBackstageStyle}" VerticalAlignment="Center" Header="Fehler melden" Height="85" HorizontalAlignment="Left" Width="81" Icon="Images/bug.png" LargeIcon="Images/bug.png" Name="Button6" />
                                            </Grid>
                                            <Grid Margin="101,0,0,0">
                                                <StackPanel VerticalAlignment="Center">
                                                    <TextBlock Text="Wenn Sie einen Programmfehler finden:" TextWrapping="Wrap" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="0,0,0,5" />
                                                    <StackPanel Orientation="Horizontal" VerticalAlignment="Center" Margin="0,0,0,5" ClipToBounds="False">
                                                        <Rectangle Width="7" Height="7" Fill="DarkGray" StrokeThickness="0" Margin="0,5,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" />
                                                        <TextBlock Text="Prüfen Sie, ob der Fehler nur einmal oder bei jedem Versuch auftritt" Margin="7,0,0,0" TextWrapping="Wrap" />
                                                    </StackPanel>
                                                    <StackPanel Orientation="Horizontal" VerticalAlignment="Center" Margin="0,0,0,5">
                                                        <Rectangle Width="7" Height="7" Fill="DarkGray" StrokeThickness="0" Margin="0,5,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" />
                                                        <TextBlock Text="Klicken Sie auf den Button und melden Sie den Fehler unter Angabe der Versionsnummer (Registrierung erforderlich)" Margin="7,0,0,0" TextWrapping="Wrap" />
                                                    </StackPanel>
                                                    <StackPanel Orientation="Horizontal" VerticalAlignment="Center">
                                                        <Rectangle Width="7" Height="7" Fill="DarkGray" StrokeThickness="0" Margin="0,5,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" />
                                                        <TextBlock Text="Aktuelle Version: " Margin="7,0,0,0" TextWrapping="Wrap" />
                                                        <TextBlock Text="{Binding Version}" />
                                                    </StackPanel>
                                                </StackPanel>
                                            </Grid>
                                        </Grid>
                                        <Grid Margin="20,20,0,0" VerticalAlignment="Top">
                                            <Grid Width="81" HorizontalAlignment="Left">
                                                <Image Width="64" Height="64" Source="Images/mozilla-mail.png" />
                                            </Grid>
                                            <Grid Margin="101,0,0,0">
                                                <StackPanel VerticalAlignment="Center">
                                                    <TextBlock Text="Haben Sie Wünsche, Verbesserungsvorschläge oder einfach Lust, eine Mail zu schreiben, können Sie folgende Adresse verwenden" TextWrapping="Wrap" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="0,0,0,5" />
                                                    <StackPanel Orientation="Horizontal" VerticalAlignment="Center" Margin="0,0,0,5" ClipToBounds="False">
                                                        <Rectangle Width="7" Height="7" Fill="DarkGray" StrokeThickness="0" Margin="0,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Center" />
                                                        <TextBox Text="biller@lastelb.com" Margin="5,0,0,0" />
                                                    </StackPanel>
                                                </StackPanel>
                                            </Grid>
                                        </Grid>
                                        <Grid Margin="20,20,0,0" VerticalAlignment="Top" Visibility="Visible">
                                            <Grid Width="81" HorizontalAlignment="Left">
                                                <Fluent:Button Style="{DynamicResource ButtonBackstageStyle}" VerticalAlignment="Center" Header="Amazon Wunschliste" Height="85" HorizontalAlignment="Left" Width="81" Icon="Images/Icon-Amazon.png" LargeIcon="Images/Icon-Amazon.png" Name="Button7" />
                                            </Grid>
                                            <Grid Margin="101,0,0,0">
                                                <StackPanel VerticalAlignment="Center">
                                                    <StackPanel Orientation="Horizontal" VerticalAlignment="Center" Margin="0,0,0,5" ClipToBounds="False">
                                                        <Rectangle Width="7" Height="7" Fill="DarkGray" StrokeThickness="0" Margin="0,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Center" />
                                                        <TextBlock Text="Dieses Projekt ist und bleibt kostenlos. Nichts desto trotz kostet die Arbeit viel Mühe, Zeit und auch Geld (für z.B. den Updateserver)" Margin="7,0,0,0" TextWrapping="Wrap" />
                                                    </StackPanel>
                                                    <StackPanel Orientation="Horizontal" VerticalAlignment="Center" Margin="0,0,0,5" ClipToBounds="False">
                                                        <Rectangle Width="7" Height="7" Fill="DarkGray" StrokeThickness="0" Margin="0,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Center" />
                                                        <TextBlock Text="Wenn Sie dieses Programm regelmäßig benutzen und damit zufrieden sind, können Sie ja einen Blick auf meine Wunschliste werfen." Margin="7,0,0,0" TextWrapping="Wrap" />
                                                    </StackPanel>
                                                </StackPanel>
                                            </Grid>
                                        </Grid>
                                    </StackPanel>
                                </metro:MetroContentControl>
                            </Fluent:BackstageTabItem>
                        </Fluent:BackstageTabControl>
                    </Fluent:Backstage>
                </Fluent:Ribbon.Menu>
                <Fluent:Ribbon.ToolBarItems>
                    <Fluent:Button Size="Small" Icon="/Images/showwelcomepagesmall.png" Click="Button_Click_1" Margin="0,0,5,0" >
                        <Fluent:Button.ToolTip>
                            <Fluent:ScreenTip Title="Willkommensseite anzeigen"
                                          Text="Öffnet die Willkommensseite, die auch beim Programmstart gezeigt wird"
                                          Width="190"
                                          IsRibbonAligned="True" />
                        </Fluent:Button.ToolTip>
                    </Fluent:Button>
                </Fluent:Ribbon.ToolBarItems>
            </Fluent:Ribbon>
            <Grid Margin="0,0,0,-4" Name="GridMain">
                <TabControl Height="Auto" HorizontalAlignment="Stretch" Margin="0,0,0,0" Name="TabControl1" VerticalAlignment="Stretch" Width="Auto" TabStripPlacement="Bottom" VerticalContentAlignment="Stretch" HorizontalContentAlignment="Stretch" BorderBrush="Transparent" Background="Transparent">
                    <!--Auftragsliste-->
                    <TabItem Header="TabItem1" Name="TabItem1" Visibility="Collapsed">
                        <Grid>
                            <ListView HorizontalAlignment="Stretch" Margin="6" Name="ListView1" VerticalAlignment="Stretch" SelectionMode="Single" UseLayoutRounding="True" ItemsSource="{Binding DisplayedOrders}" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" GridViewColumnHeader.Click="ListView1ColumnHeaderClickedHandler">
                                <ListView.ItemContainerStyle>
                                    <Style TargetType="ListViewItem">
                                        <Setter Property="HorizontalContentAlignment" Value="Center" />
                                        <Setter Property="MinHeight" Value="20px" />
                                    </Style>
                                </ListView.ItemContainerStyle>
                                <ListView.View>
                                    <GridView>
                                        <GridViewColumn Header="{DynamicResource date}" Width="{Binding ElementName=helperWidthAuftrag1, Path=ActualWidth}" DisplayMemberBinding="{Binding Date_}"/>
                                        <GridViewColumn Header="{DynamicResource type}" Width="{Binding ElementName=helperWidthAuftrag2, Path=ActualWidth}" DisplayMemberBinding="{Binding OrderTyp, Converter={StaticResource OrderTypeConverter}}" />
                                        <GridViewColumn Header="{DynamicResource number}" Width="{Binding ElementName=helperWidthAuftrag3, Path=ActualWidth}" DisplayMemberBinding="{Binding OrderID}" />
                                        <GridViewColumn Header="{DynamicResource name}" Width="{Binding ElementName=helperWidthAuftrag4, Path=ActualWidth}" DisplayMemberBinding="{Binding CustomerName}" />
                                        <GridViewColumn Header="{DynamicResource amount}" Width="{Binding ElementName=helperWidthAuftrag5, Path=ActualWidth}" DisplayMemberBinding="{Binding Value}" />
                                    </GridView>
                                </ListView.View>
                            </ListView>
                            <!--GridView für die Größe-->
                            <Grid Visibility="Hidden" Width="{Binding ElementName=ListView1, Path=ActualWidth}">
                                <Grid.ColumnDefinitions>
                                    <!--Width is bound to width of the first GridViewColumn -->
                                    <ColumnDefinition Width="0.5*" MaxWidth="150"/>
                                    <ColumnDefinition Width="0.6*" MaxWidth="150"/>
                                    <ColumnDefinition Width="0.5*" MaxWidth="150"/>
                                    <ColumnDefinition Width="4*"/>
                                    <ColumnDefinition Width="0.5*" MaxWidth="150"/>
                                    <ColumnDefinition Width="0.15*" MinWidth="8"/>
                                </Grid.ColumnDefinitions>
                                <Grid Grid.Column="0" x:Name="helperWidthAuftrag1"/>
                                <Grid Grid.Column="1" x:Name="helperWidthAuftrag2"/>
                                <Grid Grid.Column="2" x:Name="helperWidthAuftrag3"/>
                                <Grid Grid.Column="3" x:Name="helperWidthAuftrag4"/>
                                <Grid Grid.Column="4" x:Name="helperWidthAuftrag5"/>
                            </Grid>
                            <metro:Flyout Header="Schnellzugriff    " Background="#B2000000" Position="Right" Name="OrderFlyOut" Margin="0,0,-12,0" IsOpen="False">
                                <StackPanel>
                                    <RadioButton Content="Rechnung" Margin="5,5,0,0" Name="CBInvoice" IsChecked="True" GroupName="OrderQA"/>
                                    <RadioButton Content="Lieferschein" Margin="5,5,0,0" Name="CBDelivery" GroupName="OrderQA"/>
                                    <RadioButton Content="Angebot" Margin="5,5,0,0" Name="CBOffer" GroupName="OrderQA"/>
                                    <RadioButton Content="Gutschrift" Margin="5,5,0,0" Name="CBCredit" GroupName="OrderQA"/>
                                    <TextBox Name="FlyOutOrderTB" Margin="5,5,0,0" metro:TextboxHelper.Watermark="Auftragsnummer" Width="150" HorizontalAlignment="Left"/>
                                    <Label Name="FlyOutOrderNotFound" Visibility="Collapsed">Auftrag nicht gefunden</Label>
                                </StackPanel>
                                <metro:Flyout.Resources>
                                    <ResourceDictionary>
                                        <ResourceDictionary.MergedDictionaries>
                                            <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Colours.xaml" />
                                            <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Fonts.xaml" />
                                            <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.xaml" />
                                            <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/Blue.xaml" />
                                            <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/BaseDark.xaml" />
                                        </ResourceDictionary.MergedDictionaries>
                                    </ResourceDictionary>
                                </metro:Flyout.Resources>
                            </metro:Flyout>
                        </Grid>
                    </TabItem>
                    <!--Artikelliste-->
                    <TabItem Header="TabItem2" Name="TabItem2" Visibility="Collapsed">
                        <Grid>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="278" />
                                <ColumnDefinition Width="*" />
                            </Grid.ColumnDefinitions>
                            <Grid Grid.Column="0">
                                <Fluent:SeparatorTabItem Style="{DynamicResource InnerBackstageSeparatorTabItemStyle}" Header="{DynamicResource articlecategories}" Height="28" HorizontalAlignment="Left" Name="Label1" Margin="6,6,0,0" VerticalAlignment="Top" FontSize="14" FontWeight="Bold" />
                                <TreeView Height="Auto" HorizontalAlignment="Stretch" Margin="6,39,6,6" Name="TreeView1" VerticalAlignment="Stretch" Width="Auto" Padding="0" FontSize="13" SelectedItemChanged="TreeView1_SelectedItemChanged">
                                    <TreeView.ItemContainerStyle>
                                        <Style TargetType="{x:Type TreeViewItem}">
                                            <!-- Style for the selected item -->
                                            <Setter Property="IsExpanded" Value="{Binding IsExpanded, Mode=TwoWay}" />
                                            <Setter Property="BorderThickness" Value="1"/>
                                            <Setter Property="Margin" Value="0,5,0,0"/>
                                            <Style.Triggers>
                                                <!-- Selected and has focus -->
                                                <Trigger Property="IsSelected" Value="True">
                                                    <Setter Property="BorderBrush" Value="#7DA2CE"/>
                                                </Trigger>
                                                <!-- Mouse over -->
                                                <Trigger Property="my:MyTreeViewHelper.IsMouseDirectlyOverItem" Value="True">
                                                    <Setter Property="Background">
                                                        <Setter.Value>
                                                            <LinearGradientBrush EndPoint="0,1" StartPoint="0,0">
                                                                <GradientStop Color="#FFFAFBFD" Offset="0"/>
                                                                <GradientStop Color="#FFEBF3FD" Offset="1"/>
                                                            </LinearGradientBrush>
                                                        </Setter.Value>
                                                    </Setter>
                                                    <Setter Property="BorderBrush" Value="#B8D6FB"/>
                                                </Trigger>
                                                <!-- Selected but does not have the focus -->
                                                <MultiTrigger>
                                                    <MultiTrigger.Conditions>
                                                        <Condition Property="IsSelected" Value="True"/>
                                                        <Condition Property="IsSelectionActive" Value="False"/>
                                                    </MultiTrigger.Conditions>
                                                    <Setter Property="BorderBrush" Value="#D9D9D9"/>
                                                </MultiTrigger>
                                            </Style.Triggers>
                                            <Style.Resources>
                                                <Style TargetType="Border">
                                                    <Setter Property="CornerRadius" Value="2"/>
                                                </Style>
                                            </Style.Resources>
                                        </Style>
                                    </TreeView.ItemContainerStyle>
                                    <TreeView.ItemTemplate>
                                        <HierarchicalDataTemplate ItemsSource="{Binding Children}">
                                            <TextBlock Text="{Binding Name}" />
                                        </HierarchicalDataTemplate>
                                    </TreeView.ItemTemplate>
                                </TreeView>
                            </Grid>
                            <Grid Grid.Column="1" Name="Artikelueberischt" Visibility="Visible">
                                <Fluent:SeparatorTabItem Style="{DynamicResource InnerBackstageSeparatorTabItemStyle}" Header="{DynamicResource articlelist}" Height="28" HorizontalAlignment="Left" Margin="6,6,0,0" Name="Label2" VerticalAlignment="Top" FontSize="14" FontWeight="Bold" Width="822" />
                                <ListView HorizontalAlignment="Stretch" Margin="6,39,6,6" Name="ListView2" VerticalAlignment="Stretch" SelectionMode="Single" UseLayoutRounding="True" ItemsSource="{Binding DisplayedArticles}" VerticalContentAlignment="Stretch" HorizontalContentAlignment="Stretch" Height="Auto" GridViewColumnHeader.Click="ListView2ColumnHeaderClickedHandler">
                                    <ListView.ItemContainerStyle>
                                        <Style TargetType="ListViewItem">
                                            <Setter Property="HorizontalContentAlignment" Value="Center" />
                                        </Style>
                                    </ListView.ItemContainerStyle>
                                    <ListView.View>
                                        <GridView>
                                            <GridViewColumn Header="{DynamicResource articlenumber}" Width="{Binding ElementName=helperWidthArtikel1, Path=ActualWidth}" DisplayMemberBinding="{Binding ArticleID}" />
                                            <GridViewColumn Header="{DynamicResource articledescription}" Width="{Binding ElementName=helperWidthArtikel2, Path=ActualWidth}" DisplayMemberBinding="{Binding ArticleDescription}" />
                                            <GridViewColumn Header="{DynamicResource price}" Width="{Binding ElementName=helperWidthArtikel3, Path=ActualWidth}" DisplayMemberBinding="{Binding ArticlePrice}" />
                                            <GridViewColumn Header="{DynamicResource unit}" Width="{Binding ElementName=helperWidthArtikel4, Path=ActualWidth}" DisplayMemberBinding="{Binding ArticleUnit}" />
                                        </GridView>
                                    </ListView.View>
                                </ListView>
                                <Grid Visibility="Hidden" Width="{Binding ElementName=ListView2, Path=ActualWidth}" Margin="6,39,6,6">
                                    <Grid.ColumnDefinitions>
                                        <!--Width is bound to width of the first GridViewColumn -->
                                        <ColumnDefinition Width="0.5*" MaxWidth="150"/>
                                        <ColumnDefinition Width="*" MaxWidth="500"/>
                                        <ColumnDefinition Width="0.5*" MaxWidth="150"/>
                                        <ColumnDefinition Width="0.5*" MaxWidth="150"/>
                                        <ColumnDefinition Width="0.08*" />
                                    </Grid.ColumnDefinitions>
                                    <Grid Grid.Column="0" x:Name="helperWidthArtikel1"/>
                                    <Grid Grid.Column="1" x:Name="helperWidthArtikel2"/>
                                    <Grid Grid.Column="2" x:Name="helperWidthArtikel3"/>
                                    <Grid Grid.Column="3" x:Name="helperWidthArtikel4"/>
                                </Grid>
                                <my2:SearchTextBox Height="23" HorizontalAlignment="Right" Margin="0,11,6,0" Name="SearchTextBox1" VerticalAlignment="Top" Width="210" BorderBrush="#FF9A9C9E" />
                            </Grid>
                            <Grid Grid.Column="1" Name="GridNeueKategorie" Visibility="Collapsed">
                                <Fluent:SeparatorTabItem Style="{DynamicResource InnerBackstageSeparatorTabItemStyle}" Header="{DynamicResource newcategory}" Height="28" HorizontalAlignment="Left" Margin="6,6,0,0" VerticalAlignment="Top" FontSize="14" FontWeight="Bold" Width="822" />
                                <Label Content="{DynamicResource parentcategory}" Height="28" HorizontalAlignment="Left" Margin="18,46,0,0" Name="Label69" VerticalAlignment="Top" />
                                <Label Content="{Binding ElementName=TreeView1,Path=SelectedItem.Name, FallbackValue={StaticResource noparentcategory}}" Height="28" HorizontalAlignment="Left" Margin="243,46,0,0" Name="Label70" VerticalAlignment="Top" />
                                <Label Content="{DynamicResource newcategoryname}" Height="28" HorizontalAlignment="Left" Margin="18,80,0,0" Name="Label72" VerticalAlignment="Top" />
                                <Label Content="{DynamicResource categorytax}" Height="28" HorizontalAlignment="Left" Margin="18,114,0,0" Name="Label73" VerticalAlignment="Top" />
                                <ComboBox Height="23" HorizontalAlignment="Left" Margin="248,116,0,0" Name="ComboBox8" VerticalAlignment="Top" Width="231" ItemsSource="{Binding TaxClasses}" DisplayMemberPath="Name"/>
                                <Button Content="{DynamicResource notaxclass}" Height="23" HorizontalAlignment="Left" Margin="485,116,0,0" Name="Button9" VerticalAlignment="Top" Width="159" />
                                <Label Content="Name bereits vorhanden!" Visibility="Collapsed" Name="lbl_categoryexists" Foreground="Red" Height="23" HorizontalAlignment="Left" Margin="485,82,0,0" VerticalAlignment="Top" Width="159" />
                                <TextBox Height="23" HorizontalAlignment="Left" Margin="248,82,0,0" Name="TextBox35" VerticalAlignment="Top" Width="231" />
                                <Fluent:Button Header="{DynamicResource save}" Style="{StaticResource ButtonBackstageStyle}" Height="85" HorizontalAlignment="Left" Margin="6,171,0,0" Name="Button8" VerticalAlignment="Top" Width="100" IsEnabled="False" />
                                <Fluent:Button Header="{DynamicResource abort}" Style="{StaticResource ButtonBackstageStyle}" Height="85" HorizontalAlignment="Left" Margin="120,171,0,0" Name="Button10" VerticalAlignment="Top" Width="100" />
                            </Grid>
                            <StackPanel Grid.Column="1" Name="GridKategorieBearbeiten" Visibility="Collapsed">
                                <my:EditCategory DataContext="{Binding ElementName=TreeView1, Path=SelectedItem}" x:Name="editcategory"/>
                            </StackPanel>
                        </Grid>
                    </TabItem>
                    <!--Artikel erstellen-->
                    <TabItem Header="TabItem3" Name="TabItem3" Visibility="Collapsed">
                        <TabControl Style="{DynamicResource InnerBackstageTabControlStyle}" Name="ArtikelTabControl" Margin="5,5,0,0" SelectedIndex="1" IsTabStop="True">
                            <Fluent:SeparatorTabItem Header="{DynamicResource articlereport}" MinWidth="160"/>
                            <TabItem Header="Neuer Artikel" Name="ArtikeldatenTabItem">
                                <ScrollViewer VerticalScrollBarVisibility="Auto">
                                    <StackPanel>
                                        <Fluent:SeparatorTabItem Margin="6,1,0,0" Header="Neuen Artikel anlegen" Height="28" VerticalAlignment="Top" />
                                        <StackPanel Margin="20,5,20,0">
                                            <Grid Margin="0,20,0,0" >
                                                <Grid Width="150" HorizontalAlignment="Left">
                                                    <Image Height="64" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="0,0,0,0" Source="./Images/article.png"/>
                                                </Grid>
                                                <Grid Margin="160,0,0,0" Name="_grid_contentpresenter">
                                                    <StackPanel VerticalAlignment="Center">
                                                        <Fluent:SeparatorTabItem Header="Artikelnummer und -bezeichnung" VerticalAlignment="Center" Margin="7,0,0,5" />
                                                        <StackPanel Orientation="Horizontal" VerticalAlignment="Center" Margin="0,0,0,5" ClipToBounds="False" >
                                                            <Rectangle Width="7" Height="7" Fill="DarkGray" StrokeThickness="0" Margin="0,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Center" />
                                                            <TextBlock Width="110" Text="Artikelnummer:" Margin="7,0,0,0" TextWrapping="Wrap" VerticalAlignment="Center"/>
                                                            <TextBox Height="23" Margin="7,0,0,0" Name="tb_artnr" VerticalAlignment="Top" HorizontalAlignment="Right" Width="252" BorderBrush="#FF9A9C9E" Text="{Binding ArticleID}"/>
                                                        </StackPanel>
                                                        <StackPanel Orientation="Horizontal" VerticalAlignment="Center" Margin="0,0,0,5" ClipToBounds="False" >
                                                            <Rectangle Width="7" Height="7" Fill="DarkGray" StrokeThickness="0" Margin="0,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Center" />
                                                            <TextBlock Width="110" Text="Artikelbezeichnung:" Margin="7,0,0,0" TextWrapping="Wrap" VerticalAlignment="Center"/>
                                                            <TextBox Height="23" HorizontalAlignment="Stretch" Margin="7,0,0,0" Name="tb_artbez" VerticalAlignment="Top" Width="252" BorderBrush="#FF9A9C9E" Text="{Binding ArticleDescription}"/>
                                                        </StackPanel>
                                                    </StackPanel>
                                                </Grid>
                                            </Grid>
                                            <Grid Margin="0,20,0,0">
                                                <Grid Width="150" HorizontalAlignment="Left">
                                                    <Image Source="./Images/text.png" Height="64"/>
                                                </Grid>
                                                <Grid Margin="160,0,0,0">
                                                    <StackPanel VerticalAlignment="Center">
                                                        <Fluent:SeparatorTabItem Header="{DynamicResource articletext}" VerticalAlignment="Center" Margin="7,0,0,5" />
                                                        <StackPanel Orientation="Horizontal" VerticalAlignment="Center" Margin="0,0,0,5" ClipToBounds="False" >
                                                            <Rectangle Width="7" Height="7" Fill="DarkGray" StrokeThickness="0" Margin="0,7,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" />
                                                            <TextBox Height="50" Width="370" Name="tb_arttxt" VerticalAlignment="Top" AcceptsReturn="True" TextWrapping="Wrap" VerticalScrollBarVisibility="Visible" BorderBrush="#FF9A9C9E" Text="{Binding ArticleText}" Margin="7,0,0,0" />
                                                        </StackPanel>
                                                    </StackPanel>
                                                </Grid>
                                            </Grid>
                                            <Grid Margin="0,20,0,0">
                                                <Grid Width="150" HorizontalAlignment="Left">
                                                    <Image Height="64" Source="Images/money.png"/>
                                                </Grid>
                                                <Grid Margin="160,0,0,0">
                                                    <StackPanel VerticalAlignment="Center">
                                                        <Fluent:SeparatorTabItem Header="Preise" VerticalAlignment="Center" Margin="7,0,0,5" />
                                                        <StackPanel Orientation="Horizontal" VerticalAlignment="Center" Margin="0,0,0,5" ClipToBounds="False" >
                                                            <Rectangle Width="7" Height="7" Fill="DarkGray" StrokeThickness="0" HorizontalAlignment="Left" VerticalAlignment="Center" />
                                                            <Label Content="{DynamicResource pricegroup1}" Margin="7,0,0,0"/>
                                                            <TextBox Height="23" HorizontalAlignment="Left" Margin="7,0,0,0" Name="tb_preis_1" VerticalAlignment="Top" Width="82" TextAlignment="Right" BorderBrush="#FF9A9C9E" Text="{Binding ArticlePrice1.AmountString}"/>
                                                            <ComboBox Height="23" HorizontalAlignment="Left" Margin="7,0,0,0" Name="ComboBox3" VerticalAlignment="Top" Width="120" SelectedIndex="1">
                                                                <ComboBoxItem Content="{DynamicResource pricenet}" />
                                                                <ComboBoxItem Content="{DynamicResource pricegross}" />
                                                            </ComboBox>
                                                        </StackPanel>
                                                        <StackPanel Orientation="Horizontal" VerticalAlignment="Center" Margin="0,0,0,5" ClipToBounds="False" >
                                                            <Rectangle Width="7" Height="7" Fill="DarkGray" StrokeThickness="0" HorizontalAlignment="Left" VerticalAlignment="Center" />
                                                            <Label Content="{DynamicResource pricegroup2}" Margin="7,0,0,0"/>
                                                            <TextBox Height="23" HorizontalAlignment="Left" Margin="7,0,0,0" Name="tb_preis_2" VerticalAlignment="Top" Width="82" TextAlignment="Right" BorderBrush="#FF9A9C9E" Text="{Binding ArticlePrice2.AmountString}"/>
                                                            <ComboBox Height="23" HorizontalAlignment="Left" Margin="7,0,0,0" Name="ComboBox4" VerticalAlignment="Top" Width="120" SelectedIndex="1">
                                                                <ComboBoxItem Content="{DynamicResource pricenet}" />
                                                                <ComboBoxItem Content="{DynamicResource pricegross}" />
                                                            </ComboBox>
                                                        </StackPanel>
                                                        <StackPanel Orientation="Horizontal" VerticalAlignment="Center" Margin="0,0,0,5" ClipToBounds="False" >
                                                            <Rectangle Width="7" Height="7" Fill="DarkGray" StrokeThickness="0" HorizontalAlignment="Left" VerticalAlignment="Center" />
                                                            <Label Content="{DynamicResource pricegroup3}" Margin="7,0,0,0"/>
                                                            <TextBox Height="23" HorizontalAlignment="Left" Margin="7,0,0,0" Name="tb_preis_3" VerticalAlignment="Top" Width="82" TextAlignment="Right" BorderBrush="#FF9A9C9E" Text="{Binding ArticlePrice3.AmountString}"/>
                                                            <ComboBox Height="23" HorizontalAlignment="Left" Margin="7,0,0,0" Name="ComboBox5" VerticalAlignment="Top" Width="120" SelectedIndex="1">
                                                                <ComboBoxItem Content="{DynamicResource pricenet}" />
                                                                <ComboBoxItem Content="{DynamicResource pricegross}" />
                                                            </ComboBox>
                                                        </StackPanel>
                                                    </StackPanel>
                                                </Grid>
                                            </Grid>
                                            <Grid Margin="0,20,0,0">
                                                <Grid Width="150" HorizontalAlignment="Left">
                                                    <Image Source="./Images/weight.png" Height="64"/>
                                                </Grid>
                                                <Grid Margin="160,0,0,0">
                                                    <StackPanel VerticalAlignment="Center">
                                                        <Fluent:SeparatorTabItem Header="Verkaufseinheit, -gewicht und Steuerklasse" VerticalAlignment="Center" Margin="7,0,0,5" />
                                                        <StackPanel Orientation="Horizontal" VerticalAlignment="Center" Margin="0,0,0,5" ClipToBounds="False" >
                                                            <Rectangle Width="7" Height="7" Fill="DarkGray" StrokeThickness="0" HorizontalAlignment="Left" VerticalAlignment="Center" />
                                                            <Label Content="{DynamicResource saleunit}" Margin="7,0,0,0"/>
                                                            <ComboBox Height="23" HorizontalAlignment="Left" Margin="16,0,0,0" Name="cb_einheit" VerticalAlignment="Top" Width="120" ItemsSource="{Binding ArticleUnits}" DisplayMemberPath="Name"/>
                                                        </StackPanel>
                                                        <StackPanel Orientation="Horizontal" VerticalAlignment="Center" Margin="0,0,0,5" ClipToBounds="False" >
                                                            <Rectangle Width="7" Height="7" Fill="DarkGray" StrokeThickness="0" HorizontalAlignment="Left" VerticalAlignment="Center" />
                                                            <Label Content="Gewicht á Einheit:" Margin="7,0,0,0"/>
                                                            <TextBox Height="23" HorizontalAlignment="Left" Margin="5,0,0,0" Name="TextBox1" VerticalAlignment="Top" Width="100" Text="{Binding WeightString}"/>
                                                            <Label Content="kg"/>
                                                        </StackPanel>
                                                        <StackPanel Orientation="Horizontal" VerticalAlignment="Center" Margin="0,0,0,5" ClipToBounds="False" >
                                                            <Rectangle Width="7" Height="7" Fill="DarkGray" StrokeThickness="0" HorizontalAlignment="Left" VerticalAlignment="Center" />
                                                            <Label Content="{DynamicResource taxclass}" Margin="7,0,0,0"/>
                                                            <ComboBox Height="23" HorizontalAlignment="Left" Margin="32,0,0,0" Name="ComboBox9" VerticalAlignment="Top" Width="120" ItemsSource="{Binding TaxClasses}" DisplayMemberPath="Name"/>
                                                        </StackPanel>
                                                    </StackPanel>
                                                </Grid>
                                            </Grid>
                                            <Grid Height="240" Margin="0,20,0,0">
                                                <Grid Width="150" HorizontalAlignment="Left">
                                                    <Image Height="64" Source="Images/catledit.png"/>
                                                </Grid>
                                                <Grid Margin="160,0,0,0">
                                                    <StackPanel VerticalAlignment="Center">
                                                        <Fluent:SeparatorTabItem Header="{DynamicResource category}" VerticalAlignment="Center" Margin="7,0,0,5" />
                                                        <StackPanel Orientation="Horizontal" VerticalAlignment="Center" Margin="0,0,0,5" ClipToBounds="False" >
                                                            <Rectangle Width="7" Height="7" Fill="DarkGray" StrokeThickness="0" Margin="0,7,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" />
                                                            <TreeView HorizontalAlignment="Left" Margin="7,0,0,0" Name="TreeView3" Width="263" Height="200" VerticalAlignment="Top">
                                                                <!--<TreeViewItem Header="{DynamicResource allcategories}" Name="TreeView3ItemAlleKategorien" Margin="0,5,0,0" />
                                                                <TreeViewItem Header="{DynamicResource suppbenefits}" Name="TreeView3ItemNebenleistung" Margin="0,5,0,0" />-->
                                                                <TreeView.ItemContainerStyle>
                                                                    <Style TargetType="{x:Type TreeViewItem}">
                                                                        <!-- Style for the selected item -->
                                                                        <Setter Property="BorderThickness" Value="1"/>
                                                                        <Setter Property="Margin" Value="0,5,0,0"/>
                                                                        <Setter Property="IsSelected" Value="{Binding IsSelected, Mode=TwoWay}" />
                                                                        <Setter Property="IsExpanded" Value="{Binding IsExpanded, Mode=TwoWay}" />
                                                                        <Style.Triggers>
                                                                            <!-- Selected and has focus -->
                                                                            <Trigger Property="IsSelected" Value="True">
                                                                                <Setter Property="BorderBrush" Value="#7DA2CE"/>
                                                                            </Trigger>
                                                                            <!-- Mouse over -->
                                                                            <Trigger Property="my:MyTreeViewHelper.IsMouseDirectlyOverItem" Value="True">
                                                                                <Setter Property="Background">
                                                                                    <Setter.Value>
                                                                                        <LinearGradientBrush EndPoint="0,1" StartPoint="0,0">
                                                                                            <GradientStop Color="#FFFAFBFD" Offset="0"/>
                                                                                            <GradientStop Color="#FFEBF3FD" Offset="1"/>
                                                                                        </LinearGradientBrush>
                                                                                    </Setter.Value>
                                                                                </Setter>
                                                                                <Setter Property="BorderBrush" Value="#B8D6FB"/>
                                                                            </Trigger>
                                                                            <!-- Selected but does not have the focus -->
                                                                            <MultiTrigger>
                                                                                <MultiTrigger.Conditions>
                                                                                    <Condition Property="IsSelected" Value="True"/>
                                                                                    <Condition Property="IsSelectionActive" Value="False"/>
                                                                                </MultiTrigger.Conditions>
                                                                                <Setter Property="BorderBrush" Value="#D9D9D9"/>
                                                                            </MultiTrigger>
                                                                        </Style.Triggers>
                                                                        <Style.Resources>
                                                                            <Style TargetType="Border">
                                                                                <Setter Property="CornerRadius" Value="2"/>
                                                                            </Style>
                                                                        </Style.Resources>
                                                                    </Style>
                                                                </TreeView.ItemContainerStyle>

                                                                <TreeView.ItemTemplate>
                                                                    <HierarchicalDataTemplate ItemsSource="{Binding Children}">
                                                                        <TextBlock Text="{Binding Name}" />
                                                                    </HierarchicalDataTemplate>
                                                                </TreeView.ItemTemplate>
                                                            </TreeView>
                                                        </StackPanel>
                                                    </StackPanel>
                                                </Grid>
                                            </Grid>
                                        </StackPanel>
                                    </StackPanel>
                                </ScrollViewer>
                            </TabItem>
                        </TabControl>
                    </TabItem>
                    <!--Kundenübersicht-->
                    <TabItem Header="TabItem5" Name="TabItem5" Visibility="Collapsed">
                        <Grid>
                            <Grid Margin="0" Visibility="Visible" Name="CustomerOverView">
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="1*" />
                                    <ColumnDefinition Width="4*" />
                                </Grid.ColumnDefinitions>
                                <TreeView Name="TreeView2" Margin="6,6,12,6">
                                    <TreeViewItem Header="{DynamicResource allcustomers}" IsExpanded="True" IsSelected="False" Name="TreeViewItemAlleKunden" Margin="0,2,0,0">
                                        <TreeViewItem Header="A   " />
                                        <TreeViewItem Header="B   " />
                                        <TreeViewItem Header="C   " />
                                        <TreeViewItem Header="D   " />
                                        <TreeViewItem Header="E   " />
                                        <TreeViewItem Header="F   " />
                                        <TreeViewItem Header="G   " />
                                        <TreeViewItem Header="H   " />
                                        <TreeViewItem Header="I   " />
                                        <TreeViewItem Header="J   " />
                                        <TreeViewItem Header="K   " />
                                        <TreeViewItem Header="L   " />
                                        <TreeViewItem Header="M   " />
                                        <TreeViewItem Header="N   " />
                                        <TreeViewItem Header="O   " />
                                        <TreeViewItem Header="P   " />
                                        <TreeViewItem Header="Q   " />
                                        <TreeViewItem Header="R   " />
                                        <TreeViewItem Header="S   " />
                                        <TreeViewItem Header="T   " />
                                        <TreeViewItem Header="U   " />
                                        <TreeViewItem Header="V   " />
                                        <TreeViewItem Header="W   " />
                                        <TreeViewItem Header="X   " />
                                        <TreeViewItem Header="Y   " />
                                        <TreeViewItem Header="Z   " />
                                        <!--<TreeViewItem Header="{DynamicResource other}" />-->
                                    </TreeViewItem>
                                </TreeView>
                                <ListView Grid.Column="1" Margin="6,39,6,6" HorizontalAlignment="Stretch" Name="ListViewKunden" VerticalAlignment="Stretch" SelectionMode="Single" UseLayoutRounding="True" ItemsSource="{Binding DisplayedCustomers}" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" GridViewColumnHeader.Click="ListView3ColumnHeaderClickedHandler">
                                    <ListView.ItemContainerStyle>
                                        <Style TargetType="ListViewItem">
                                            <Setter Property="HorizontalContentAlignment" Value="Center" />
                                            <Setter Property="MinHeight" Value="20px" />
                                        </Style>
                                    </ListView.ItemContainerStyle>
                                    <ListView.View>
                                        <GridView>
                                            <GridViewColumn Header="{DynamicResource customerno}"  Width="120" DisplayMemberBinding="{Binding CustomerID}"/>
                                            <GridViewColumn Header="{DynamicResource customername}"  Width="200" DisplayMemberBinding="{Binding DisplayedName}"/>
                                            <GridViewColumn Header="{DynamicResource address}"  Width="600"  DisplayMemberBinding="{Binding Address}"/>
                                        </GridView>
                                    </ListView.View>
                                </ListView>
                                <my2:SearchTextBox Height="23" HorizontalAlignment="Right" Margin="0,11,6,0" Name="SearchTextBox2" VerticalAlignment="Top" Width="210" BorderBrush="#FF9A9C9E" Grid.Column="1" />
                                <RadioButton Visibility="Collapsed" Content="{DynamicResource customersearchcontain}" Height="16" HorizontalAlignment="Left" Margin="354,11,0,0" Name="RadioButton2" VerticalAlignment="Top" Width="269" Grid.Column="1" IsChecked="True" />
                                <RadioButton Visibility="Collapsed" Content="{DynamicResource customersearchstarts}" Height="16" HorizontalAlignment="Left" Margin="47,8,0,0" Name="RadioButton3" VerticalAlignment="Top" Width="301" Grid.Column="1" />
                                <Fluent:SeparatorTabItem Style="{DynamicResource InnerBackstageSeparatorTabItemStyle}" Header="{DynamicResource customerreport}" Foreground="DimGray" Grid.Column="1" Height="28" Margin="6,6,224,0" Name="Label96" VerticalAlignment="Top" FontSize="14" FontWeight="Bold" />
                            </Grid>
                            <Grid Visibility="Collapsed" Name="CustomerSalesListGrid">
                                <ScrollViewer VerticalScrollBarVisibility="Auto">
                                    <StackPanel Margin="5,0">
                                        <Fluent:SeparatorTabItem Style="{DynamicResource InnerBackstageSeparatorTabItemStyle}" Header="Kundenumsätze im Vergleich" Foreground="DimGray" Grid.Column="1" Height="28" Margin="6,6,224,0" VerticalAlignment="Top" FontSize="14" FontWeight="Bold" />
                                        <Expander Header="Datum festlegen">
                                            <StackPanel Orientation="Horizontal">
                                                <Label Content="Startdatum"/>
                                                <Calendar Name="calendarCustomerSalesStart"/>
                                                <Label Content="Enddatum:" Margin="100,0,0,0" VerticalAlignment="Stretch" />
                                                <Calendar Name="calendarCustomerSalesEnd"/>
                                            </StackPanel>
                                        </Expander>
                                        <ListView Margin="0,10,0,0" Name="LVCustomerSalesList" Height="500">
                                            <ListView.ItemContainerStyle>
                                                <Style TargetType="ListViewItem">
                                                    <Setter Property="HorizontalContentAlignment" Value="Center" />
                                                    <Setter Property="MinHeight" Value="20px" />
                                                </Style>
                                            </ListView.ItemContainerStyle>
                                            <ListView.View>
                                                <GridView>
                                                    <GridViewColumn Header="Kundennummer" Width="{Binding ElementName=LVCustomerSalesListWidth1,Path=ActualWidth}" DisplayMemberBinding="{Binding CustomerID}"/>
                                                    <GridViewColumn Header="Name" Width="{Binding ElementName=LVCustomerSalesListWidth2,Path=ActualWidth}" DisplayMemberBinding="{Binding CustomerName}"/>
                                                    <GridViewColumn Header="Umsatz" Width="{Binding ElementName=LVCustomerSalesListWidth3,Path=ActualWidth}" DisplayMemberBinding="{Binding Value}"/>
                                                    <GridViewColumn Header="Umsatz in %" Width="{Binding ElementName=LVCustomerSalesListWidth4,Path=ActualWidth}" DisplayMemberBinding="{Binding Percent}"/>
                                                </GridView>
                                            </ListView.View>
                                        </ListView>
                                        <Grid Width="{Binding ElementName=LVCustomerSalesList, Path=ActualWidth}" Visibility="Hidden">
                                            <Grid.ColumnDefinitions>
                                                <ColumnDefinition Width="*" MaxWidth="150" />
                                                <ColumnDefinition Width="2*"/>
                                                <ColumnDefinition Width="*"/>
                                                <ColumnDefinition Width="*"/>
                                                <ColumnDefinition Width="15"/>
                                            </Grid.ColumnDefinitions>
                                            <Grid Grid.Column="0" Name="LVCustomerSalesListWidth1"/>
                                            <Grid Grid.Column="1" Name="LVCustomerSalesListWidth2"/>
                                            <Grid Grid.Column="2" Name="LVCustomerSalesListWidth3"/>
                                            <Grid Grid.Column="3" Name="LVCustomerSalesListWidth4"/>
                                        </Grid>
                                    </StackPanel>
                                </ScrollViewer>
                            </Grid>
                        </Grid>
                    </TabItem>
                    <!--Kundendaten-->
                    <TabItem Header="TabItem6" Name="TabItem6" Visibility="Collapsed">
                        <!--Neuen Kunden anlegen-->
                        <Grid>
                            <TabControl Style="{DynamicResource InnerBackstageTabControlStyle}" Name="KundeTabControl" Margin="5,5,0,0" SelectedIndex="1" IsTabStop="True">
                                <Fluent:SeparatorTabItem Header="{DynamicResource customerreport}" MinWidth="160" Margin="0,5,0,0" />
                                <TabItem Header="{StaticResource customerdata}" Name="CustomerDataPreview">
                                    <metro:MetroContentControl>
                                        <ScrollViewer VerticalScrollBarVisibility="Auto">
                                            <my:CustomerPreview/>
                                        </ScrollViewer>
                                    </metro:MetroContentControl>
                                </TabItem>
                                <TabItem Header="{StaticResource editcustomerdata}" Name="KundendatenTabItem" IsSelected="True">
                                    <metro:MetroContentControl Name="GridKundeContainer">
                                        <ScrollViewer Padding="0,0,0,20" VerticalScrollBarVisibility="Auto">
                                            <my:CustomerEdit Margin="10,0,0,0" x:Name="customereditcontrol"/>
                                        </ScrollViewer>
                                    </metro:MetroContentControl>
                                </TabItem>
                                <TabItem Header="{DynamicResource customerstatistics}" Name="CustomerStatsTabItem" Visibility="Collapsed">
                                    <metro:MetroContentControl>
                                        <TabControl Style="{DynamicResource InnerBackstageTabControlStyle}" Name="CustomerStatsTabControl" Margin="5,0,0,0" SelectedIndex="1" IsTabStop="True">
                                            <Fluent:SeparatorTabItem Header="{DynamicResource customerstatistics}" MinWidth="160" Margin="0,5,0,0" />
                                            <TabItem Header="{DynamicResource revenuestats}" Name="CustomerStatsUmsatz" IsSelected="True">
                                                <Grid>
                                                    <charting:Chart x:Name="chart" Margin="6,95,15,6" FontSize="13" BorderBrush="Transparent">
                                                        <charting:Chart.Series>
                                                            <charting:ColumnSeries ItemsSource="{Binding}" DependentValueBinding="{Binding Path=Value.Amount}" IndependentValueBinding="{Binding Path=DateString}" IsSelectionEnabled="True" Title="Monatlicher Umsatz in €"/>
                                                        </charting:Chart.Series>
                                                        <charting:Chart.Axes>
                                                            <charting:LinearAxis Orientation="Y" ShowGridLines="True" Minimum="0">
                                                                <charting:LinearAxis.AxisLabelStyle >
                                                                    <Style TargetType="charting:AxisLabel">
                                                                        <Setter Property="StringFormat" Value="{}{0:f2} €"/>
                                                                    </Style>
                                                                </charting:LinearAxis.AxisLabelStyle>
                                                            </charting:LinearAxis>
                                                        </charting:Chart.Axes>
                                                        <charting:Chart.LegendStyle>
                                                            <Style TargetType="Control">
                                                                <Setter Property="Width" Value="0"/>
                                                                <Setter Property="Height" Value="0"/>
                                                            </Style>
                                                        </charting:Chart.LegendStyle>
                                                    </charting:Chart>
                                                    <Fluent:SeparatorTabItem Header="{DynamicResource revenuestats}" Margin="10,5,0,0" VerticalAlignment="Top"/>
                                                    <StackPanel Margin="14,34,0,0" Height="28" VerticalAlignment="Top" Orientation="Horizontal">
                                                        <Label Content="{DynamicResource revenuestatsfrom}" Height="28" HorizontalAlignment="Left" Name="Label125" VerticalAlignment="Top" />
                                                        <Label Content="" Height="28" Name="Label16" VerticalAlignment="Top" />
                                                    </StackPanel>
                                                </Grid>
                                            </TabItem>
                                            <TabItem Header="{DynamicResource previousinvoices}" Visibility="Visible">
                                                <metro:MetroContentControl>
                                                    <Grid>
                                                        <Fluent:SeparatorTabItem Header="{DynamicResource previousinvoices}" Margin="10,5,0,0" VerticalAlignment="Top"/>
                                                        <ListView Margin="20,47,24,21" Name="ListView4" ItemsSource="{Binding}">
                                                            <ListView.ItemContainerStyle>
                                                                <Style TargetType="ListViewItem">
                                                                    <Setter Property="HorizontalContentAlignment" Value="Center" />
                                                                    <Setter Property="MinHeight" Value="20px" />
                                                                </Style>
                                                            </ListView.ItemContainerStyle>
                                                            <ListView.View>
                                                                <GridView>
                                                                    <GridViewColumn Header="{DynamicResource date}" Width="{Binding ElementName=helperWidthAuftrag6, Path=ActualWidth}" DisplayMemberBinding="{Binding Date_}"/>
                                                                    <GridViewColumn Header="{DynamicResource type}" Width="{Binding ElementName=helperWidthAuftrag7, Path=ActualWidth}" DisplayMemberBinding="{Binding OrderTyp, Converter={StaticResource OrderTypeConverter}}" />
                                                                    <GridViewColumn Header="{DynamicResource number}" Width="{Binding ElementName=helperWidthAuftrag8, Path=ActualWidth}" DisplayMemberBinding="{Binding OrderID}" />
                                                                    <GridViewColumn Header="{DynamicResource name}" Width="{Binding ElementName=helperWidthAuftrag9, Path=ActualWidth}" DisplayMemberBinding="{Binding CustomerName}" />
                                                                    <GridViewColumn Header="{DynamicResource amount}" Width="{Binding ElementName=helperWidthAuftrag10, Path=ActualWidth}" DisplayMemberBinding="{Binding Value}" />
                                                                </GridView>
                                                            </ListView.View>
                                                        </ListView>
                                                        <!--GridView für die Größe-->
                                                        <Grid Visibility="Hidden" Width="{Binding ElementName=ListView4, Path=ActualWidth}">
                                                            <Grid.ColumnDefinitions>
                                                                <!--Width is bound to width of the first GridViewColumn -->
                                                                <ColumnDefinition Width="0.5*" MaxWidth="150"/>
                                                                <ColumnDefinition Width="0.6*" MaxWidth="150"/>
                                                                <ColumnDefinition Width="0.5*" MaxWidth="150"/>
                                                                <ColumnDefinition Width="4*"/>
                                                                <ColumnDefinition Width="0.5*" MaxWidth="150"/>
                                                                <ColumnDefinition Width="0.15*" MinWidth="8"/>
                                                            </Grid.ColumnDefinitions>
                                                            <Grid Grid.Column="0" x:Name="helperWidthAuftrag6"/>
                                                            <Grid Grid.Column="1" x:Name="helperWidthAuftrag7"/>
                                                            <Grid Grid.Column="2" x:Name="helperWidthAuftrag8"/>
                                                            <Grid Grid.Column="3" x:Name="helperWidthAuftrag9"/>
                                                            <Grid Grid.Column="4" x:Name="helperWidthAuftrag10"/>
                                                        </Grid>
                                                    </Grid>
                                                </metro:MetroContentControl>
                                            </TabItem>
                                            <TabItem Header="Meistgekaufte Artikel">
                                                <ScrollViewer VerticalScrollBarVisibility="Auto">
                                                    <StackPanel>
                                                        <Fluent:SeparatorTabItem Header="Meistgekaufte Artikel" Margin="10,5,0,0" VerticalAlignment="Top"/>
                                                        <ListView Margin="20,5" Name="LVMBACustomer" ItemsSource="{Binding}" Height="400" >
                                                            <ListView.ItemContainerStyle>
                                                                <Style TargetType="ListViewItem">
                                                                    <Setter Property="HorizontalContentAlignment" Value="Center" />
                                                                    <Setter Property="MinHeight" Value="20px" />
                                                                </Style>
                                                            </ListView.ItemContainerStyle>
                                                            <ListView.View>
                                                                <GridView>
                                                                    <GridViewColumn Header="Artikelnummer" Width="{Binding ElementName=LVMBACWi1, Path=ActualWidth}" DisplayMemberBinding="{Binding Article.ArticleID}"/>
                                                                    <GridViewColumn Header="Artikelbezeichnung" Width="{Binding ElementName=LVMBACWi2, Path=ActualWidth}" DisplayMemberBinding="{Binding Article.ArticleDescription}" />
                                                                    <GridViewColumn Header="Verkaufte Menge" Width="{Binding ElementName=LVMBACWi3, Path=ActualWidth}" DisplayMemberBinding="{Binding AmountString}" />
                                                                    <GridViewColumn Header="Artikelumsatz" Width="{Binding ElementName=LVMBACWi4, Path=ActualWidth}" DisplayMemberBinding="{Binding Proceeds}" />
                                                                </GridView>
                                                            </ListView.View>
                                                        </ListView>
                                                        <!--Grid für die Größe-->
                                                        <Grid Visibility="Hidden" Width="{Binding ElementName=LVMBACustomer, Path=ActualWidth}">
                                                            <Grid.ColumnDefinitions>
                                                                <!--Width is bound to width of the first GridViewColumn -->
                                                                <ColumnDefinition Width="0.8*" MaxWidth="150"/>
                                                                <ColumnDefinition Width="2*" MaxWidth="250"/>
                                                                <ColumnDefinition Width="0.8*" MaxWidth="180"/>
                                                                <ColumnDefinition  Width="0.8*" MaxWidth="180"/>
                                                                <ColumnDefinition Width="0.15*" MinWidth="8"/>
                                                            </Grid.ColumnDefinitions>
                                                            <Grid Grid.Column="0" x:Name="LVMBACWi1"/>
                                                            <Grid Grid.Column="1" x:Name="LVMBACWi2"/>
                                                            <Grid Grid.Column="2" x:Name="LVMBACWi3"/>
                                                            <Grid Grid.Column="3" x:Name="LVMBACWi4"/>
                                                        </Grid>
                                                        <charting:Chart x:Name="MBACchart" Margin="20,0,20,0" FontSize="13" BorderBrush="Transparent" Height="400" Visibility="Visible">
                                                            <charting:Chart.Series>
                                                                <charting:PieSeries ItemsSource="{Binding}" DependentValueBinding="{Binding Path=Proceeds.Amount}" IndependentValueBinding="{Binding Path=Article.ArticleDescription}" IsSelectionEnabled="False" Title="Meistgekaufte Artikel" />
                                                            </charting:Chart.Series>
                                                        </charting:Chart>
                                                    </StackPanel>
                                                </ScrollViewer>
                                            </TabItem>
                                        </TabControl>
                                    </metro:MetroContentControl>
                                </TabItem>
                            </TabControl>
                        </Grid>
                    </TabItem>
                    <!--Einstellungen -->
                    <TabItem Header="TabItem7" Name="TabItem7" Visibility="Collapsed">
                        <Grid>
                            <TabControl Style="{DynamicResource InnerBackstageTabControlStyle}" Name="SettingsTabControl" Margin="5,5,0,0" SelectedIndex="1" IsTabStop="True">
                                <Fluent:SeparatorTabItem Header="{DynamicResource settings}" MinWidth="160" Margin="0,5,0,0" />
                                <TabItem Header="{DynamicResource generalsettings}" Name="SettingsItemAllg" Margin="0,5,0,0">
                                    <ScrollViewer VerticalScrollBarVisibility="Auto" CanContentScroll="True">
                                        <Grid Height="846" VerticalAlignment="Top" >
                                            <Grid.ColumnDefinitions>
                                                <ColumnDefinition Width="*" />
                                                <ColumnDefinition Width="*" />
                                            </Grid.ColumnDefinitions>
                                            <Grid.RowDefinitions>
                                                <RowDefinition Height="*" />
                                                <RowDefinition Height="*" />
                                                <RowDefinition Height="*" />
                                            </Grid.RowDefinitions>
                                            <Fluent:SeparatorTabItem Header="{DynamicResource articleunits}" Margin="10,5,0,0" VerticalAlignment="Top" Grid.ColumnSpan="2"/>
                                            <ListView Margin="10,40,10,11" Name="ListViewArticleUnits" ItemsSource="{Binding ArticleUnits}">
                                                <ListView.ItemContainerStyle>
                                                    <Style TargetType="ListViewItem">
                                                        <Setter Property="MinHeight" Value="20px" />
                                                        <Setter Property="HorizontalContentAlignment" Value="Center" />
                                                    </Style>
                                                </ListView.ItemContainerStyle>
                                                <ListView.View>
                                                    <GridView>
                                                        <GridViewColumn Header="{DynamicResource name}" Width="{Binding ElementName=helperWidthArtikelEinheiten1, Path=ActualWidth}" DisplayMemberBinding="{Binding Name}"/>
                                                        <GridViewColumn Header="{DynamicResource abbreviation}" Width="{Binding ElementName=helperWidthArtikelEinheiten2, Path=ActualWidth}" DisplayMemberBinding="{Binding ShortName}"/>
                                                        <GridViewColumn Header="Einheitenformat" Width="{Binding ElementName=helperWidthArtikelEinheiten3, Path=ActualWidth}" DisplayMemberBinding="{Binding UnitFormat}"/>
                                                    </GridView>
                                                </ListView.View>
                                            </ListView>
                                            <StackPanel Grid.Column="1">
                                                <Fluent:SeparatorTabItem Header="{DynamicResource addnewunit}"  Height="28" HorizontalAlignment="Left" Margin="12,40,0,0" VerticalAlignment="Top" FontWeight="Bold"/>
                                                <StackPanel Orientation="Horizontal">
                                                    <Label Content="{DynamicResource name}" FontWeight="Normal" HorizontalAlignment="Left" Margin="12,0,0,0" VerticalAlignment="Top" Width="100"/>
                                                    <TextBox Height="23" Margin="5,0,55,0" Name="TextBox23" Width="200" VerticalAlignment="Center" BorderBrush="#FF9A9C9E" Text="{Binding ElementName=ListViewArticleUnits, Path=SelectedItem.Name, Mode=OneWay}"/>
                                                </StackPanel>
                                                <StackPanel Orientation="Horizontal" Margin="0,5,0,0">
                                                    <Label Content="{DynamicResource abbreviation}" FontWeight="Normal" HorizontalAlignment="Left" Margin="12,0,0,0" VerticalAlignment="Top" Width="100"/>
                                                    <TextBox Height="23" Margin="5,0,55,0" Name="TextBox24" Width="200" VerticalAlignment="Center" BorderBrush="#FF9A9C9E" Text="{Binding ElementName=ListViewArticleUnits, Path=SelectedItem.ShortName, Mode=OneWay}"/>
                                                </StackPanel>
                                                <StackPanel Orientation="Horizontal" Margin="0,5,0,0">
                                                    <Label Content="Einheitenformat" FontWeight="Normal" HorizontalAlignment="Left" Margin="12,0,0,0" VerticalAlignment="Top" Width="100"/>
                                                    <TextBox Height="23" Margin="5,0,55,0" Name="tb_unitformat" Width="200" VerticalAlignment="Center" BorderBrush="#FF9A9C9E" Text="{Binding ElementName=ListViewArticleUnits, Path=SelectedItem.UnitFormat, Mode=OneWay}"/>
                                                </StackPanel>
                                                <Fluent:Button Style="{DynamicResource ButtonBackstageStyle}" Header="{DynamicResource save}" LargeIcon="Images/save.png" Height="85" HorizontalAlignment="Left" Margin="12,15,0,0" Name="Button2" VerticalAlignment="Top" Width="125"/>
                                            </StackPanel>
                                            <!--<Fluent:Button Style="{DynamicResource ButtonBackstageStyle}" Header="{DynamicResource editunit}" LargeIcon="Images/edit.png" Height="85" HorizontalAlignment="Left" Margin="143,145,0,0" Name="Button16" VerticalAlignment="Top" Width="125" Grid.Column="1" IsEnabled="False" />-->
                                            <Grid Name="GridArtikelEinheiten" Width="{Binding ElementName=ListViewArtikelEinheiten, Path=ActualWidth}" Visibility="Hidden" Margin="10,40,10,11">
                                                <Grid.ColumnDefinitions>
                                                    <!--Width is bound to width of the first GridViewColumn -->
                                                    <ColumnDefinition Width="*" MaxWidth="250" />
                                                    <ColumnDefinition Width="*" MaxWidth="250" />
                                                    <ColumnDefinition Width="*" MaxWidth="250" />
                                                    <ColumnDefinition Width="12px"/>
                                                </Grid.ColumnDefinitions>
                                                <Grid Grid.Column="0" x:Name="helperWidthArtikelEinheiten1"/>
                                                <Grid Grid.Column="1" x:Name="helperWidthArtikelEinheiten2"/>
                                                <Grid Grid.Column="2" x:Name="helperWidthArtikelEinheiten3"/>
                                            </Grid>

                                            <Fluent:SeparatorTabItem Header="{DynamicResource paymentmethodes}" Margin="10,5,0,0" VerticalAlignment="Top" Grid.Row="1" Grid.ColumnSpan="2"/>
                                            <ListView Margin="10,40,10,11" Name="ListViewPaymentMethodes" ItemsSource="{Binding PaymentMethodes}" Grid.Row="1">
                                                <ListView.ItemContainerStyle>
                                                    <Style TargetType="ListViewItem">
                                                        <Setter Property="MinHeight" Value="20px" />
                                                        <Setter Property="HorizontalContentAlignment" Value="Center" />
                                                    </Style>
                                                </ListView.ItemContainerStyle>
                                                <ListView.View>
                                                    <GridView>
                                                        <GridViewColumn Header="{DynamicResource name}" Width="{Binding ElementName=helperWidthZahlungsarten1, Path=ActualWidth}" DisplayMemberBinding="{Binding Name}"/>
                                                        <GridViewColumn Header="{DynamicResource text}" Width="{Binding ElementName=helperWidthZahlungsarten2, Path=ActualWidth}" DisplayMemberBinding="{Binding Text}"/>
                                                        <GridViewColumn Header="{DynamicResource abatement}" Width="{Binding ElementName=helperWidthZahlungsarten3, Path=ActualWidth}" DisplayMemberBinding="{Binding ReductionString}"/>
                                                    </GridView>
                                                </ListView.View>
                                            </ListView>
                                            <Fluent:SeparatorTabItem Header="{DynamicResource newpaymentmethode}" Grid.Column="1" Height="28" HorizontalAlignment="Left" Margin="12,40,0,0" Name="Label153" VerticalAlignment="Top" FontWeight="Bold"  Grid.Row="1"/>
                                            <Label Content="{DynamicResource name}" FontWeight="Normal" Height="28" HorizontalAlignment="Left" Margin="12,74,0,0" Name="Label154" VerticalAlignment="Top" Grid.Column="1"  Grid.Row="1"/>
                                            <Label Content="{DynamicResource text}" FontWeight="Normal" Height="28" HorizontalAlignment="Left" Margin="12,108,0,0" Name="Label155" VerticalAlignment="Top" Grid.Column="1"  Grid.Row="1"/>
                                            <Label Content="{DynamicResource abatement}" FontWeight="Normal" Height="28" HorizontalAlignment="Left" Margin="12,140,0,0" Name="Label156" VerticalAlignment="Top" Grid.Column="1"  Grid.Row="1"/>
                                            <TextBox Height="23" Margin="89,76,74,0" Name="TextBox123" VerticalAlignment="Top" Grid.Column="1" BorderBrush="#FF9A9C9E"  Grid.Row="1" Text="{Binding ElementName=ListViewPaymentMethodes, Path=SelectedItem.Name, Mode=OneWay}"/>
                                            <TextBox Height="23" Margin="89,110,74,0" Name="TextBox124" VerticalAlignment="Top" Grid.Column="1" BorderBrush="#FF9A9C9E"  Grid.Row="1" Text="{Binding ElementName=ListViewPaymentMethodes, Path=SelectedItem.Text}"/>
                                            <TextBox Height="23" Margin="89,142,74,0" Name="TextBox125" VerticalAlignment="Top" Grid.Column="1" BorderBrush="#FF9A9C9E"  Grid.Row="1" Text="{Binding ElementName=ListViewPaymentMethodes, Path=SelectedItem.AbatementString}"/>
                                            <Fluent:Button Style="{DynamicResource ButtonBackstageStyle}" Header="{DynamicResource save}" LargeIcon="Images/save.png" Grid.Column="1" Height="85" HorizontalAlignment="Left" Margin="12,174,0,0" Name="Button12" VerticalAlignment="Top" Width="125"  Grid.Row="1"/>
                                            <!--<Fluent:Button Style="{DynamicResource ButtonBackstageStyle}" Header="{DynamicResource editpaymentmethode}" LargeIcon="Images/edit.png" Height="85" HorizontalAlignment="Left" Margin="143,174,0,0" Name="Button18" VerticalAlignment="Top" Width="125" Grid.Column="1" Grid.Row="1" IsEnabled="False" />-->
                                            <Grid Name="GridZahlungsarten" Width="{Binding ElementName=ListViewZahlungsarten, Path=ActualWidth}" Visibility="Hidden" Margin="6,40,10,11">
                                                <Grid.ColumnDefinitions>
                                                    <!--Width is bound to width of the first GridViewColumn -->
                                                    <ColumnDefinition Width="*" MaxWidth="200" />
                                                    <ColumnDefinition Width="*" MaxWidth="200" />
                                                    <ColumnDefinition Width="*" MaxWidth="100" />
                                                    <ColumnDefinition Width="12px"/>
                                                </Grid.ColumnDefinitions>
                                                <Grid Grid.Column="0" x:Name="helperWidthZahlungsarten1"/>
                                                <Grid Grid.Column="1" x:Name="helperWidthZahlungsarten2"/>
                                                <Grid Grid.Column="2" x:Name="helperWidthZahlungsarten3"/>
                                            </Grid>
                                            <Fluent:Button Style="{DynamicResource ButtonBackstageStyle}" Header="Platzhalter für Skontobetrag" Grid.Column="1" Grid.Row="1" Height="85" HorizontalAlignment="Left" Margin="274,174,0,0" Name="Button21" VerticalAlignment="Top" Width="125" />
                                            <Fluent:Button Style="{DynamicResource ButtonBackstageStyle}" Header="Platzhalter für skont. Endbetrag" Grid.Column="1" Grid.Row="1" Height="85" HorizontalAlignment="Left" Margin="405,174,0,0" Name="Button22" VerticalAlignment="Top" Width="125" />

                                            <Fluent:SeparatorTabItem Header="{DynamicResource ordertext}" Margin="10,5,0,0" VerticalAlignment="Top" Grid.Row="2" Grid.ColumnSpan="2"/>
                                            <ListView Margin="10,40,10,11" Name="ListViewOrderTexts" ItemsSource="{Binding OrderTexts}" Grid.Row="2">
                                                <ListView.ItemContainerStyle>
                                                    <Style TargetType="ListViewItem">
                                                        <Setter Property="MinHeight" Value="20px" />
                                                        <Setter Property="HorizontalContentAlignment" Value="Center" />
                                                    </Style>
                                                </ListView.ItemContainerStyle>
                                                <ListView.View>
                                                    <GridView>
                                                        <GridViewColumn Header="{DynamicResource name}" Width="{Binding ElementName=helperWidthArtikelEinheiten1, Path=ActualWidth}" DisplayMemberBinding="{Binding Name}"/>
                                                        <GridViewColumn Header="{DynamicResource text}" Width="{Binding ElementName=helperWidthArtikelEinheiten2, Path=ActualWidth}" DisplayMemberBinding="{Binding Text}"/>
                                                    </GridView>
                                                </ListView.View>
                                            </ListView>
                                            <Fluent:SeparatorTabItem Header="{DynamicResource createnewordertext}" FontWeight="Bold" Height="28" HorizontalAlignment="Left" Margin="12,40,0,0" Name="Label91" VerticalAlignment="Top" Grid.Column="1" Grid.Row="2" />
                                            <Label Content="{DynamicResource name}" FontWeight="Normal" Height="28" HorizontalAlignment="Left" Margin="12,74,0,0" Name="Label92" VerticalAlignment="Top" Grid.Column="1" Grid.Row="2" />
                                            <Label Content="{DynamicResource text}" FontWeight="Normal" Height="28" HorizontalAlignment="Left" Margin="12,108,0,0" Name="Label93" VerticalAlignment="Top" Grid.Column="1" Grid.Row="2" />
                                            <TextBox BorderBrush="#FF9A9C9E" Height="23" Margin="89,76,74,0" Name="TextBox38" VerticalAlignment="Top" Grid.Column="1" Grid.Row="2" Text="{Binding ElementName=ListViewOrderTexts, Path=SelectedItem.Name, Mode=OneWay}" />
                                            <TextBox BorderBrush="#FF9A9C9E" Height="64" Margin="89,110,74,0" Name="TextBox39" VerticalAlignment="Top" Grid.Column="1" Grid.Row="2" AcceptsReturn="True" TextWrapping="Wrap" VerticalScrollBarVisibility="Visible" Text="{Binding ElementName=ListViewOrderTexts, Path=SelectedItem.Text, Mode=OneWay}"/>
                                            <Fluent:Button Style="{DynamicResource ButtonBackstageStyle}" Header="{DynamicResource save}" LargeIcon="Images/save.png" Height="85" HorizontalAlignment="Left" Margin="12,180,0,0" Name="Button13" VerticalAlignment="Top" Width="125" Grid.Column="1" Grid.Row="2" />
                                            <!--<Fluent:Button Style="{DynamicResource ButtonBackstageStyle}" Header="{DynamicResource edittemplate}" LargeIcon="Images/edit.png" Height="85" HorizontalAlignment="Left" Margin="143,180,0,0" Name="Button19" VerticalAlignment="Top" Width="125" Grid.Column="1" Grid.Row="2" IsEnabled="False" />-->
                                        </Grid>
                                    </ScrollViewer>
                                </TabItem>
                                <TabItem Header="Steuerklassen" Name="TabItemTaxClass" Background="Transparent">
                                    <Grid>
                                        <Grid Height="300" VerticalAlignment="Top">
                                            <Grid.ColumnDefinitions>
                                                <ColumnDefinition Width="*" />
                                                <ColumnDefinition Width="*" />
                                            </Grid.ColumnDefinitions>
                                            <Fluent:SeparatorTabItem Header="Steuerklassen" Margin="10,5,0,0" VerticalAlignment="Top" Grid.ColumnSpan="2"/>
                                            <ListView Margin="10,40,10,11" Name="ListViewSteuerklasse" ItemsSource="{Binding TaxClasses}">
                                                <ListView.ItemContainerStyle>
                                                    <Style TargetType="ListViewItem">
                                                        <Setter Property="MinHeight" Value="20px" />
                                                        <Setter Property="HorizontalContentAlignment" Value="Center" />
                                                    </Style>
                                                </ListView.ItemContainerStyle>
                                                <ListView.View>
                                                    <GridView>
                                                        <GridViewColumn Header="Bezeichnung" Width="{Binding ElementName=helperWidthSteuerklassen1, Path=ActualWidth}" DisplayMemberBinding="{Binding Name}"/>
                                                        <GridViewColumn Header="Steuersatz" Width="{Binding ElementName=helperWidthSteuerklassen2, Path=ActualWidth}" DisplayMemberBinding="{Binding TaxRateString}"/>
                                                    </GridView>
                                                </ListView.View>
                                            </ListView>
                                            <Grid Name="GridSteuerklassenWidth" Width="{Binding ElementName=ListViewSteuerklasse, Path=ActualWidth}" Visibility="Hidden" Margin="6,6,0,0">
                                                <Grid.ColumnDefinitions>
                                                    <!--Width is bound to width of the first GridViewColumn -->
                                                    <ColumnDefinition Width="*" MaxWidth="250" />
                                                    <ColumnDefinition Width="*" MaxWidth="250" />
                                                    <ColumnDefinition Width="12px"/>
                                                </Grid.ColumnDefinitions>
                                                <Grid Grid.Column="0" x:Name="helperWidthSteuerklassen1"/>
                                                <Grid Grid.Column="1" x:Name="helperWidthSteuerklassen2"/>
                                            </Grid>
                                            <Fluent:SeparatorTabItem Header="Neue Steuerklasse hinzufügen" Grid.Column="1" Height="28" HorizontalAlignment="Left" Margin="12,40,0,0" Name="Label63" VerticalAlignment="Top" FontWeight="Bold" />
                                            <Label Content="Bezeichnung:" FontWeight="Normal" Height="28" HorizontalAlignment="Left" Margin="12,74,0,0" Name="Label62" VerticalAlignment="Top" Grid.Column="1" />
                                            <Label Content="Steuersatz (%):" FontWeight="Normal" Height="28" HorizontalAlignment="Left" Margin="12,108,0,0" Name="Label61" VerticalAlignment="Top" Grid.Column="1" />
                                            <TextBox Grid.Column="1" Height="23" Margin="105,76,55,0" Name="TextBox25" VerticalAlignment="Top" BorderBrush="#FF9A9C9E" Text=""/>
                                            <TextBox Height="23" Margin="105,110,54,0" Name="TextBox26" VerticalAlignment="Top" Grid.Column="1" BorderBrush="#FF9A9C9E" Text=""/>
                                            <Fluent:Button Header="Steuerklasse speichern" Style="{DynamicResource ButtonBackstageStyle}" Grid.Column="1" Height="85" Width="125" LargeIcon="Images/save.png" HorizontalAlignment="Left" Margin="12,145,0,0" Name="Button3" VerticalAlignment="Top" />
                                        </Grid>
                                        <Fluent:SeparatorTabItem Header="Ausweisung der Steuer" FontSize="14" Height="30" HorizontalAlignment="Left" Margin="10,306,0,0" Name="Label58" VerticalAlignment="Top" />
                                        <Label Content="Bezeichnung auf Rechnung:" Height="28" HorizontalAlignment="Left" Margin="10,341,0,0" Name="Label57" VerticalAlignment="Top" />
                                        <RadioButton Content="Mehrwertsteuer (MwSt.)" Height="16" HorizontalAlignment="Left" Margin="189,346,0,0" Name="RadioButton4" VerticalAlignment="Top" GroupName="SteuerName" />
                                        <RadioButton Content="Umsatzsteuer (USt.)" Height="16" HorizontalAlignment="Left" Margin="338,346,0,0" Name="RadioButton5" VerticalAlignment="Top" GroupName="SteuerName" />
                                        <Label Visibility="Collapsed" Content="Steuern auf Nebenleistungen:" Height="28" HorizontalAlignment="Left" Margin="10,365,0,0" Name="Label59" VerticalAlignment="Top" IsEnabled="False" />
                                        <RadioButton Visibility="Collapsed" Content="Extra ausweisen" GroupName="SteuerNebenleistung" Height="16" HorizontalAlignment="Left" Margin="189,370,0,0" Name="RadioButton6" VerticalAlignment="Top" IsEnabled="False" />
                                        <RadioButton Visibility="Collapsed" Content="Nicht extra ausweisen" GroupName="SteuerNebenleistung" Height="16" HorizontalAlignment="Left" Margin="338,370,0,0" Name="RadioButton7" VerticalAlignment="Top" Width="137" IsEnabled="False" />
                                        <Button Content="Steuerklasse bearbeiten" Height="23" HorizontalAlignment="Left" Margin="158,145,0,0" Name="Button20" VerticalAlignment="Top" Width="140" Grid.Column="1" Visibility="Collapsed" />
                                        <Label Content="(Nur Steuersatz)" Grid.Column="1" Height="28" HorizontalAlignment="Left" Margin="180,166,0,0" Name="Label120" VerticalAlignment="Top" Visibility="Collapsed" />
                                    </Grid>
                                </TabItem>
                                <TabItem Header="Rechnungslayout" Name="SettingsLayout" Background="Transparent">
                                    <Grid>
                                        <Grid.ColumnDefinitions>
                                            <ColumnDefinition Width="2*" MinWidth="600"/>
                                            <ColumnDefinition Width="1.2*" />
                                        </Grid.ColumnDefinitions>
                                        <Image Margin="0,40,12,9" Name="Image1" Stretch="Uniform" Grid.Column="1" Source="/Biller;component/Biller.ico" StretchDirection="DownOnly" />
                                        <Label Content="Ausgewähltes Drucklayout:" Height="28" HorizontalAlignment="Left" Margin="6,6,0,0" Name="Label67" VerticalAlignment="Top" />
                                        <ComboBox Height="23" Margin="164,8,14,0" Name="ComboBox7" VerticalAlignment="Top"/>
                                        <Grid Margin="6,40,14,9"  Name="LayoutGrid" VerticalAlignment="Stretch"></Grid>
                                    </Grid>
                                </TabItem>
                                <TabItem Header="{DynamicResource usermanagement}" Name="SettingsUserManagement" Background="Transparent">
                                    <ScrollViewer VerticalScrollBarVisibility="Auto">
                                        <my:UserManagementSettingsControl x:Name="usermanagementSettingspage"/>
                                    </ScrollViewer>
                                </TabItem>
                                <TabItem Header="Erweiterungen" Name="TabItemV3" Background="Transparent">
                                    <Grid>
                                        <ScrollViewer VerticalScrollBarVisibility="Auto">
                                            <StackPanel>
                                                <Fluent:SeparatorTabItem Header="Erweiterungen" Margin="10,5,0,0" VerticalAlignment="Top"/>
                                                <ListView Height="188" HorizontalAlignment="Left" Margin="20,20,0,0" Name="ListView3" VerticalAlignment="Top" Width="544" SelectionMode="Single" ItemsSource="{Binding}">
                                                    <ListView.ItemContainerStyle>
                                                        <Style TargetType="ListViewItem">
                                                            <Setter Property="MinHeight" Value="20px" />
                                                            <Setter Property="HorizontalContentAlignment" Value="Center" />
                                                        </Style>
                                                    </ListView.ItemContainerStyle>
                                                    <ListView.View>
                                                        <GridView>
                                                            <GridViewColumn Header="Name" Width="{Binding ElementName=helperWidthAddin11, Path=ActualWidth}" DisplayMemberBinding="{Binding Name}"/>
                                                        </GridView>
                                                    </ListView.View>
                                                </ListView>
                                                <my:AddinInfo Margin="20,20,0,20" DataContext="{Binding ElementName=ListView3, Path=SelectedItem}"/>
                                            </StackPanel>
                                        </ScrollViewer>
                                        <Grid Visibility="Hidden" Margin="21,40,0,0" Height="188" Width="544">
                                            <Grid.ColumnDefinitions>
                                                <!--Width is bound to width of the first GridViewColumn -->
                                                <ColumnDefinition Width="*" />
                                                <ColumnDefinition Width="12px"/>
                                            </Grid.ColumnDefinitions>
                                            <Grid Grid.Column="0" x:Name="helperWidthAddin11"/>
                                            <Grid Grid.Column="1" x:Name="helperWidthAddin12"/>
                                        </Grid>
                                    </Grid>
                                </TabItem>
                                <TabItem Header="Sonstiges" Background="Transparent">
                                    <StackPanel>
                                        <Fluent:SeparatorTabItem Header="Warnhinweise" Margin="10,5,0,0" VerticalAlignment="Top"/>
                                        <StackPanel Orientation="Horizontal" Margin="20,10,0,0" Height="80" VerticalAlignment="Top">
                                            <Fluent:ToggleButton Height="70" HorizontalAlignment="Left"  Name="ToggleButton1" VerticalAlignment="Top" Width="139" Header="Warnhinweis bei Auftrag löschen anzeigen" LargeIcon="Images/orderdeletewarning.png" Margin="0,0,10,0" />
                                            <Fluent:ToggleButton Header="Warnhinweis bei Artikel löschen anzeigen" Height="70" HorizontalAlignment="Left"  Name="ToggleButton2" VerticalAlignment="Top" Width="139" LargeIcon="Images/articledeletewarning.png" Margin="0,0,10,0" />
                                            <Fluent:ToggleButton Header="Warnhinweis bei Kunde löschen anzeigen" Height="70" HorizontalAlignment="Left" Name="ToggleButton3" VerticalAlignment="Top" Width="139" LargeIcon="Images/customerdeletewarning.png"/>
                                        </StackPanel>
                                        <Fluent:SeparatorTabItem Header="Automatisches Backup" Margin="10,30,0,0" VerticalAlignment="Top"/>
                                        <StackPanel Margin="20,10,0,0" Height="100" VerticalAlignment="Top">
                                            <Fluent:ToggleButton Height="70" HorizontalAlignment="Left" Name="ToggleButton4" VerticalAlignment="Top" Width="139" Header="Bei Programmende autom. Backup anlegen" LargeIcon="Images/autobackup.png" Margin="0,0,10,0" IsChecked="True" />
                                            <StackPanel Orientation="Horizontal" Margin="0,5,0,0">
                                                <Label>Pfad zum Speicherort:</Label>
                                                <TextBox Name="TBBackupPath" Width="602" IsEnabled="{Binding ElementName=ToggleButton4, Path=IsChecked}"/>
                                            </StackPanel>
                                        </StackPanel>
                                        <Fluent:SeparatorTabItem Header="Tabellendesign (Exportfunktion)" Margin="10,30,0,0"/>
                                        <StackPanel Margin="20,10,0,0" Height="100">
                                            <Fluent:ComboBox Style="{DynamicResource ComboBoxBackstageStyle}" HorizontalAlignment="Left" Name="ComboBox1">
                                                <ComboBoxItem Style="{DynamicResource ComboBoxItemBackstageStyle}">
                                                    <ComboBoxItem.Content>
                                                        <StackPanel Orientation="Horizontal">
                                                            <Rectangle Width="32" Height="32" Fill="LightGray" OpacityMask="#E6000000" Margin="4,0,0,0" />
                                                            <Label Content="Weiß" VerticalContentAlignment="Center" Margin="4,0,0,0"/>
                                                        </StackPanel>
                                                    </ComboBoxItem.Content>
                                                </ComboBoxItem>
                                                <ComboBoxItem Style="{DynamicResource ComboBoxItemBackstageStyle}">
                                                    <ComboBoxItem.Content>
                                                        <StackPanel Orientation="Horizontal">
                                                            <Rectangle Width="32" Height="32" Fill="LightGray" OpacityMask="#E6000000" Margin="4,0,0,0" />
                                                            <Label Content="Hellgrau-Weiß" VerticalContentAlignment="Center" Margin="4,0,0,0"/>
                                                        </StackPanel>
                                                    </ComboBoxItem.Content>
                                                </ComboBoxItem>
                                                <ComboBoxItem Style="{DynamicResource ComboBoxItemBackstageStyle}">
                                                    <ComboBoxItem.Content>
                                                        <StackPanel Orientation="Horizontal">
                                                            <Rectangle Width="32" Height="32" Fill="LightGray" OpacityMask="#E6000000" Margin="4,0,0,0" />
                                                            <Label Content="Hellblau-Weiß" VerticalContentAlignment="Center" Margin="4,0,0,0"/>
                                                        </StackPanel>
                                                    </ComboBoxItem.Content>
                                                </ComboBoxItem>
                                                <ComboBoxItem Style="{DynamicResource ComboBoxItemBackstageStyle}">
                                                    <ComboBoxItem.Content>
                                                        <StackPanel Orientation="Horizontal">
                                                            <Rectangle Width="32" Height="32" Fill="LightGray" OpacityMask="#E6000000" Margin="4,0,0,0" />
                                                            <Label Content="Hellgrün-Weiß (schwarze Schrift, mit Zellenrand)" VerticalContentAlignment="Center" Margin="4,0,0,0"/>
                                                        </StackPanel>
                                                    </ComboBoxItem.Content>
                                                </ComboBoxItem>
                                            </Fluent:ComboBox>
                                        </StackPanel>
                                    </StackPanel>
                                </TabItem>
                            </TabControl>
                        </Grid>
                    </TabItem>
                    <!--Importieren.-->
                    <TabItem Header="TabItem8" Name="TabItem8"  Visibility="Collapsed">
                        <Grid>
                            <TabControl Style="{DynamicResource InnerBackstageTabControlStyle}" Margin="5,5,0,0" Name="TabControl3">
                                <Fluent:SeparatorTabItem Header="Importformat" MinWidth="160" Margin="0,5,0,0" />
                                <TabItem Header="CSV Format" Name="TabItemImporter1" Margin="0,5,0,0" IsSelected="True">
                                    <ScrollViewer VerticalScrollBarVisibility="Auto">
                                        <Grid>
                                            <Fluent:SeparatorTabItem Header="Datei auswählen" Margin="10,5,0,0" VerticalAlignment="Top"/>
                                            <StackPanel Margin="10,40,0,0" VerticalAlignment="Top">
                                                <StackPanel Orientation="Horizontal">
                                                    <Label Content="Pfad zur Datei:" Width="110"/>
                                                    <TextBox metro:TextboxHelper.Watermark="Doppelt klicken zum Auswählen" Width="200" Text="{Binding FilePath}" Name="TextBox2" />
                                                </StackPanel>
                                                <StackPanel Orientation="Horizontal" Margin="0,10,0,0">
                                                    <Label Content="Trennzeichen:" Width="110"/>
                                                    <TextBox Width="200" Text="{Binding Trennzeichen}"/>
                                                </StackPanel>
                                                <StackPanel Orientation="Horizontal" Margin="0,10,0,0">
                                                    <Label Content="Wertkennzeichen:" Width="110"/>
                                                    <TextBox Width="200" Text="{Binding Wertkennzeichen}"/>
                                                    <TextBox Name="UnFocusTB2" Visibility="Hidden"/>
                                                </StackPanel>
                                                <TabControl Margin="0,10,0,0">
                                                    <TabItem Header="Artikel importieren  ">
                                                        <StackPanel>
                                                            <TextBlock Text="Feldbezeichner (Kopfzeile):" Style="{StaticResource SubHeaderStyle}"/>
                                                            <StackPanel Orientation="Horizontal">
                                                                <TextBlock Style="{StaticResource ContentStyle}" Text="Artikelnummer" Width="{Binding ElementName=importhelperwidth1, Path=ActualWidth}"/>
                                                                <TextBox Text="{Binding ArticleNumber}" Width="{Binding ElementName=importhelperwidth1, Path=ActualWidth}" />
                                                            </StackPanel>
                                                            <StackPanel Orientation="Horizontal" Margin="0,5,0,0">
                                                                <TextBlock Style="{StaticResource ContentStyle}" Text="Artikelbezeichnung" Width="{Binding ElementName=importhelperwidth1, Path=ActualWidth}"/>
                                                                <TextBox Text="{Binding ArticleDescription}" Width="{Binding ElementName=importhelperwidth1, Path=ActualWidth}" />
                                                            </StackPanel>
                                                            <StackPanel Orientation="Horizontal" Margin="0,5,0,0">
                                                                <TextBlock Style="{StaticResource ContentStyle}" Text="Verkaufseinheit" Width="{Binding ElementName=importhelperwidth1, Path=ActualWidth}"/>
                                                                <TextBox Text="{Binding ArticleUnit}" Width="{Binding ElementName=importhelperwidth1, Path=ActualWidth}" />
                                                            </StackPanel>
                                                            <StackPanel Orientation="Horizontal" Margin="0,5,0,0">
                                                                <TextBlock Style="{StaticResource ContentStyle}" Text="Gewicht pro Einheit" Width="{Binding ElementName=importhelperwidth1, Path=ActualWidth}"/>
                                                                <TextBox Text="{Binding ArticleWeight}" Width="{Binding ElementName=importhelperwidth1, Path=ActualWidth}" />
                                                            </StackPanel>
                                                            <StackPanel Orientation="Horizontal" Margin="0,5,0,0">
                                                                <TextBlock Style="{StaticResource ContentStyle}" Text="Artikelkategorie" Width="{Binding ElementName=importhelperwidth1, Path=ActualWidth}"/>
                                                                <TextBox Text="{Binding ArticleCategory}" Width="{Binding ElementName=importhelperwidth1, Path=ActualWidth}" />
                                                            </StackPanel>
                                                            <StackPanel Orientation="Horizontal" Margin="0,5,0,0">
                                                                <TextBlock Style="{StaticResource ContentStyle}" Text="Artikelpreis 1" Width="{Binding ElementName=importhelperwidth1, Path=ActualWidth}"/>
                                                                <TextBox Text="{Binding ArticlePrice1}" Width="{Binding ElementName=importhelperwidth1, Path=ActualWidth}" />
                                                            </StackPanel>
                                                            <StackPanel Orientation="Horizontal" Margin="0,5,0,0">
                                                                <TextBlock Style="{StaticResource ContentStyle}" Text="Artikelpreis 2" Width="{Binding ElementName=importhelperwidth1, Path=ActualWidth}"/>
                                                                <TextBox Text="{Binding ArticlePrice2}" Width="{Binding ElementName=importhelperwidth1, Path=ActualWidth}" />
                                                            </StackPanel>
                                                            <StackPanel Orientation="Horizontal" Margin="0,5,0,0">
                                                                <TextBlock Style="{StaticResource ContentStyle}" Text="Artikelpreis 3" Width="{Binding ElementName=importhelperwidth1, Path=ActualWidth}"/>
                                                                <TextBox Text="{Binding ArticlePrice3}" Width="{Binding ElementName=importhelperwidth1, Path=ActualWidth}" />
                                                            </StackPanel>
                                                            <StackPanel Orientation="Horizontal" Margin="0,5,0,0">
                                                                <TextBlock Style="{StaticResource ContentStyle}" Text="Steuersatz" Width="{Binding ElementName=importhelperwidth1, Path=ActualWidth}"/>
                                                                <TextBox Text="{Binding ArticleTax}" Width="{Binding ElementName=importhelperwidth1, Path=ActualWidth}" />
                                                            </StackPanel>
                                                            <StackPanel Orientation="Horizontal" Margin="0,5,0,0">
                                                                <TextBlock Style="{StaticResource ContentStyle}" Text="Text" Width="{Binding ElementName=importhelperwidth1, Path=ActualWidth}"/>
                                                                <TextBox Text="{Binding ArticleText}" Width="{Binding ElementName=importhelperwidth1, Path=ActualWidth}" />
                                                            </StackPanel>
                                                            <Grid>
                                                                <Grid.ColumnDefinitions>
                                                                    <ColumnDefinition Width="*"/>
                                                                    <ColumnDefinition Width="*"/>
                                                                    <ColumnDefinition Width="4*"/>
                                                                </Grid.ColumnDefinitions>
                                                                <Grid Grid.Column="0" Name="importhelperwidth1"/>
                                                                <Grid Grid.Column="0"/>
                                                                <Grid Grid.Column="0"/>
                                                            </Grid>
                                                            <TextBlock Style="{StaticResource ContentStyle}" Text="Stellen Sie sicher, dass diese Elemente in der Kopfzeile der ausgewählten Datei vorhanden sind. Die Anordnung der Elemente kann beliebig sein." Margin="0,5,0,0"/>
                                                            <TextBlock Style="{StaticResource ContentStyle}" Text="Sind im Dokument Sonderzeichen oder Umlaute enthalten, öffnen Sie dieses im Windows Editor und wählen Sie 'Datei' -> 'Speichern unter', im Auswahlfeld 'Codierung' den Wert 'UTF-8' und klicken danach auf 'Speichern'." TextWrapping="Wrap"/>
                                                            <Fluent:Button Style="{DynamicResource ButtonBackstageStyle}" Header="Importieren" Width="100" Height="85" LargeIcon="./Images/arrowdown.png" Icon="./Images/arrowdown.png" Name="ButtonArticleImport" HorizontalAlignment="Left" Margin="15,5,0,0" />
                                                            <metro:ProgressRing IsActive="False" Name="PRArticleImport"/>
                                                        </StackPanel>
                                                    </TabItem>
                                                    <TabItem Header="Kunden importieren  ">
                                                        <StackPanel>
                                                            <TextBlock Text="Feldbezeichner (Kopfzeile):" Style="{StaticResource SubHeaderStyle}"/>

                                                            <StackPanel Orientation="Horizontal">
                                                                <TextBlock Style="{StaticResource ContentStyle}" Text="Kundennummer" Width="{Binding ElementName=importhelperwidth1, Path=ActualWidth}"/>
                                                                <TextBox Text="{Binding CustomerNumber}" Width="{Binding ElementName=importhelperwidth1, Path=ActualWidth}" />
                                                            </StackPanel>
                                                            <StackPanel Orientation="Horizontal" Margin="0,5,0,0">
                                                                <TextBlock Style="{StaticResource ContentStyle}" Text="Vorname" Width="{Binding ElementName=importhelperwidth1, Path=ActualWidth}"/>
                                                                <TextBox Text="{Binding CustomerForname}" Width="{Binding ElementName=importhelperwidth1, Path=ActualWidth}" />
                                                            </StackPanel>
                                                            <StackPanel Orientation="Horizontal" Margin="0,5,0,0">
                                                                <TextBlock Style="{StaticResource ContentStyle}" Text="Nachname" Width="{Binding ElementName=importhelperwidth1, Path=ActualWidth}"/>
                                                                <TextBox Text="{Binding CustomerSurname}" Width="{Binding ElementName=importhelperwidth1, Path=ActualWidth}" />
                                                            </StackPanel>
                                                            <StackPanel Orientation="Horizontal" Margin="0,5,0,0">
                                                                <TextBlock Style="{StaticResource ContentStyle}" Text="Anrede" Width="{Binding ElementName=importhelperwidth1, Path=ActualWidth}"/>
                                                                <TextBox Text="{Binding CustomerSalutation}" Width="{Binding ElementName=importhelperwidth1, Path=ActualWidth}" />
                                                            </StackPanel>
                                                            <StackPanel Orientation="Horizontal" Margin="0,5,0,0">
                                                                <TextBlock Style="{StaticResource ContentStyle}" Text="Firmenname" Width="{Binding ElementName=importhelperwidth1, Path=ActualWidth}"/>
                                                                <TextBox Text="{Binding CustomerCompany}" Width="{Binding ElementName=importhelperwidth1, Path=ActualWidth}" />
                                                            </StackPanel>
                                                            <StackPanel Orientation="Horizontal" Margin="0,5,0,0">
                                                                <TextBlock Style="{StaticResource ContentStyle}" Text="Straße &amp; Nummer" Width="{Binding ElementName=importhelperwidth1, Path=ActualWidth}"/>
                                                                <TextBox Text="{Binding CustomerStreet}" Width="{Binding ElementName=importhelperwidth1, Path=ActualWidth}" />
                                                            </StackPanel>
                                                            <StackPanel Orientation="Horizontal" Margin="0,5,0,0">
                                                                <TextBlock Style="{StaticResource ContentStyle}" Text="Postleitzahl" Width="{Binding ElementName=importhelperwidth1, Path=ActualWidth}"/>
                                                                <TextBox Text="{Binding CustomerZip}" Width="{Binding ElementName=importhelperwidth1, Path=ActualWidth}" />
                                                            </StackPanel>
                                                            <StackPanel Orientation="Horizontal" Margin="0,5,0,0">
                                                                <TextBlock Style="{StaticResource ContentStyle}" Text="Stadt" Width="{Binding ElementName=importhelperwidth1, Path=ActualWidth}"/>
                                                                <TextBox Text="{Binding CustomerCity}" Width="{Binding ElementName=importhelperwidth1, Path=ActualWidth}" />
                                                            </StackPanel>
                                                            <StackPanel Orientation="Horizontal" Margin="0,5,0,0">
                                                                <TextBlock Style="{StaticResource ContentStyle}" Text="Telefon" Width="{Binding ElementName=importhelperwidth1, Path=ActualWidth}"/>
                                                                <TextBox Text="{Binding CustomerPhone}" Width="{Binding ElementName=importhelperwidth1, Path=ActualWidth}" />
                                                            </StackPanel>
                                                            <StackPanel Orientation="Horizontal" Margin="0,5,0,0">
                                                                <TextBlock Style="{StaticResource ContentStyle}" Text="Mail" Width="{Binding ElementName=importhelperwidth1, Path=ActualWidth}"/>
                                                                <TextBox Text="{Binding CustomerMail}" Width="{Binding ElementName=importhelperwidth1, Path=ActualWidth}" />
                                                            </StackPanel>

                                                            <TextBlock Style="{StaticResource ContentStyle}" Text="Stellen Sie sicher, dass diese Elemente in der Kopfzeile der ausgewählten Datei vorhanden sind. Die Anordnung der Elemente kann beliebig sein." Margin="0,5,0,0"/>
                                                            <TextBlock Style="{StaticResource ContentStyle}" Text="Sind im Dokument Sonderzeichen oder Umlaute enthalten, öffnen Sie dieses im Windows Editor und wählen Sie 'Datei' -> 'Speichern unter', im Auswahlfeld 'Codierung' den Wert 'UTF-8' und klicken danach auf 'Speichern'." TextWrapping="Wrap" />
                                                            <Fluent:Button Style="{DynamicResource ButtonBackstageStyle}" Header="Importieren" Width="100" Height="85" LargeIcon="./Images/arrowdown.png" Icon="./Images/arrowdown.png" Name="ButtonCustomerImport" HorizontalAlignment="Left" Margin="15,5,0,0" />
                                                            <metro:ProgressRing IsActive="False" Name="PRCustomerImport"/>
                                                        </StackPanel>
                                                    </TabItem>
                                                    <TabItem Header="Aufträge importieren" Visibility="Collapsed">
                                                        <Grid>
                                                            <StackPanel>
                                                                <Label Content="Feldbezeichner (Kopfzeile):"/>
                                                                <TextBox Text="'Belegdatum';'Belegnummer';'Buchungstext';'Buchungsbetrag'" FontFamily="Courier New" IsReadOnly="True" />
                                                                <Label Content="Stellen Sie sicher, dass diese Elemente in der Kopfzeile der ausgewählten Datei vorhanden sind. Die Anordnung der Elemente kann beliebig sein."/>
                                                                <Label Content="Das Feld 'Buchungstext' enthält den Namen des Kunden"/>
                                                                <TextBlock Text="Sind im Dokument Sonderzeichen oder Umlaute enthalten, öffnen Sie dieses im Windows Editor und wählen Sie 'Datei' -> 'Speichern unter', im Auswahlfeld 'Codierung' den Wert 'UTF-8' und klicken danach auf 'Speichern'." TextWrapping="Wrap" Margin="5,0,0,0" />
                                                                <Fluent:Button Style="{DynamicResource ButtonBackstageStyle}" Header="Importieren" Width="100" Height="85" LargeIcon="./Images/arrowdown.png" Icon="./Images/arrowdown.png" Name="ButtonOrderImport" HorizontalAlignment="Left" Margin="15,0,0,0" />
                                                                <metro:ProgressRing IsActive="False" Name="PROrderImport"/>
                                                            </StackPanel>
                                                        </Grid>
                                                    </TabItem>
                                                </TabControl>
                                            </StackPanel>

                                            <Grid.Resources>
                                                <ResourceDictionary>
                                                    <ResourceDictionary.MergedDictionaries>
                                                        <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Colours.xaml" />
                                                        <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Fonts.xaml" />
                                                        <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.xaml" />
                                                        <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/Blue.xaml" />
                                                        <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/BaseLight.xaml" />
                                                    </ResourceDictionary.MergedDictionaries>
                                                </ResourceDictionary>
                                            </Grid.Resources>
                                        </Grid>
                                    </ScrollViewer>
                                    
                                </TabItem>
                                <TabItem Header="XML Format" Name="TabItemImporter2" Margin="0,5,0,0" Visibility="Collapsed">
                                    <Grid>
                                        <Fluent:SeparatorTabItem Header="Datei auswählen" Margin="10,5,0,0" VerticalAlignment="Top"/>

                                    </Grid>
                                </TabItem>
                            </TabControl>
                        </Grid>
                    </TabItem>
                    <!--Update-->
                    <TabItem Name="TabItem10" Header="TabItem10" Visibility="Collapsed">
                        <Grid>
                            <TabControl Style="{DynamicResource InnerBackstageTabControlStyle}" Name="UpdateControl" Margin="5,5,0,0" SelectedIndex="-1">
                                <Fluent:SeparatorTabItem Header="Neue Updates vorhanden für:" MinWidth="300"/>
                                <TabItem Header="EmptyItem" Name="eitem" IsSelected="true" IsEnabled="False" Visibility="Hidden">
                                    <Grid>
                                        <TextBlock Margin="6,6,12,242" Name="UpdateWelcome" Text="Willkommen beim Updatemanager von Biller! &#13;&#10;In der linken Liste werden ihnen die verfügbaren Updates angezeigt. Mit einem Klick auf das entsprechende Feld werden die entsprechenden Dateien automatisch heruntergeladen und installiert. &#13;&#10;&#13;&#10;Speichern sie vor einem Update immer ihre offenen Arbeiten im Programm!&#13;&#10;&#13;&#10;Persönliche Daten bleiben erhalten!" TextWrapping="Wrap" FontSize="13" />
                                    </Grid>
                                </TabItem>
                            </TabControl>
                        </Grid>
                    </TabItem>
                    <!--Vorlage-->
                    <TabItem Name="Vorlage" Header="TabItemVorlage" Visibility="Collapsed">

                    </TabItem>
                    <!--Artikelstatistik-->
                    <TabItem Visibility="Collapsed" Name="TabItemArticleStats">
                        <ScrollViewer VerticalScrollBarVisibility="Auto">
                            <StackPanel Margin="5,10">
                                <Fluent:SeparatorTabItem Style="{DynamicResource InnerBackstageSeparatorTabItemStyle}" Header="Artikelverkäufe im Vergleich" Foreground="DimGray" Grid.Column="1" Height="28" Margin="6,0,6,0" VerticalAlignment="Top" FontSize="14" FontWeight="Bold" />
                                <Expander Header="Datum festlegen">
                                    <StackPanel Orientation="Horizontal">
                                        <Label Content="Startdatum"/>
                                        <Calendar Name="calendarArticleStatsStart"/>
                                        <Label Content="Enddatum:" Margin="100,0,0,0" VerticalAlignment="Stretch" />
                                        <Calendar Name="calendarArticleStatsEnd"/>
                                    </StackPanel>
                                </Expander>
                                <ListView Margin="0,10,0,0" Name="LVArticlesSalesList" Height="500">
                                    <ListView.ItemContainerStyle>
                                        <Style TargetType="ListViewItem">
                                            <Setter Property="HorizontalContentAlignment" Value="Center" />
                                            <Setter Property="MinHeight" Value="20px" />
                                        </Style>
                                    </ListView.ItemContainerStyle>
                                    <ListView.View>
                                        <GridView>
                                            <GridViewColumn Header="Kundennummer" Width="{Binding ElementName=LVArticlesSalesListWidth1,Path=ActualWidth}" DisplayMemberBinding="{Binding Article.ArticleID}"/>
                                            <GridViewColumn Header="Name" Width="{Binding ElementName=LVArticlesSalesListWidth2,Path=ActualWidth}" DisplayMemberBinding="{Binding Article.ArticleDescription}"/>
                                            <GridViewColumn Header="Umsatz" Width="{Binding ElementName=LVArticlesSalesListWidth3,Path=ActualWidth}" DisplayMemberBinding="{Binding Proceeds}"/>
                                            <GridViewColumn Header="Menge" Width="{Binding ElementName=LVArticlesSalesListWidth4,Path=ActualWidth}" DisplayMemberBinding="{Binding AmountString}"/>
                                        </GridView>
                                    </ListView.View>
                                </ListView>
                                <Grid Width="{Binding ElementName=LVArticlesSalesList, Path=ActualWidth}" Visibility="Hidden">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="*" MaxWidth="150" />
                                        <ColumnDefinition Width="2*"/>
                                        <ColumnDefinition Width="*"/>
                                        <ColumnDefinition Width="*"/>
                                        <ColumnDefinition Width="15"/>
                                    </Grid.ColumnDefinitions>
                                    <Grid Grid.Column="0" Name="LVArticlesSalesListWidth1"/>
                                    <Grid Grid.Column="1" Name="LVArticlesSalesListWidth2"/>
                                    <Grid Grid.Column="2" Name="LVArticlesSalesListWidth3"/>
                                    <Grid Grid.Column="3" Name="LVArticlesSalesListWidth4"/>
                                </Grid>
                            </StackPanel>
                        </ScrollViewer>
                    </TabItem>
                </TabControl>
            </Grid>
        </DockPanel>
        <Grid Margin="0,26,26,0" HorizontalAlignment="Right" Width="194" Height="24" VerticalAlignment="Top" Visibility="Collapsed">
            <Button Content="How you can translate the program" Height="23" Name="Button15" VerticalAlignment="Top" />          
        </Grid>
        <Grid Visibility="Collapsed" Name="FlyOuts">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="3*" />
            </Grid.ColumnDefinitions>
            <Grid Name="FlyOutRight" Background="White" HorizontalAlignment="Stretch" Grid.Column="1">
                <Grid.RenderTransform>
                    <TranslateTransform />
                </Grid.RenderTransform>
                <Grid Name="NewCompany" Visibility="Collapsed">
                    <my:NewCompanyWelcomePage x:Name="firstrunwizard" Margin="20"/>
                </Grid>
                <Grid Name="WelcomeRight" Visibility="Visible">
                    <StackPanel Margin="20,20,20,120" Name="WelcomeRightSP">
                        <Label Content="Willkommen" FontWeight="Bold" HorizontalAlignment="Left" Margin="0,12,0,0" FontSize="30" FontFamily="Segoe UI Light, Lucida Sans Unicode, Verdana"/>
                        <StackPanel Orientation="Horizontal" Margin="0,20,0,0" VerticalAlignment="Top">
                            <Label Content="Ausgewählte Firma: " FontFamily="Segoe UI Light, Lucida Sans Unicode, Verdana" FontSize="20"/>
                            <Label Name="CurrentCompany" FontFamily="Segoe UI Light, Lucida Sans Unicode, Verdana" FontSize="20"/>
                        </StackPanel>
                        <StackPanel Orientation="Horizontal" Margin="0,20,0,0" VerticalAlignment="Top">
                            <TextBlock Width="{Binding ElementName=WelcomeRightSP, Path=ActualWidth}" Text="Helfen Sie mit: Schreiben Sie eine Mail an biller@lastelb.com und sagen Sie, was Ihrer Meinung nach auf dem Startbildschirm angezeigt werden soll." FontFamily="Segoe UI Light, Lucida Sans Unicode, Verdana" FontSize="20" TextWrapping="Wrap" Margin="5,0,0,0" />
                        </StackPanel>
                        <my:WaitDB x:Name="WaitDBControl"/>
                        <my:DBDisconnect x:Name="DBDisconnectControl" Visibility="Collapsed"/>
                    </StackPanel>
                    <StackPanel Margin="0,542,0,50" VerticalAlignment="Bottom">
                        <Label FontSize="20" FontFamily="Segoe UI Light, Lucida Sans Unicode, Verdana" Content="Zum fortfahren Maus klicken oder Bildschirm berühren und zur Seite wischen" HorizontalAlignment="Center"/>
                        <metro:ProgressIndicator Height="10" ProgressColour="#FF5195B7" HorizontalAlignment="Center" Width="600"/>
                    </StackPanel>
                </Grid>
            </Grid>
            <Grid Name="FlyOutLeft" Background="#FF5195B7" HorizontalAlignment="Stretch" Grid.Column="0" >
                <Grid.RenderTransform>
                    <TranslateTransform />
                </Grid.RenderTransform>
                <Grid Name="WelcomeLeft" Visibility="Visible">
                    <StackPanel Margin="20,20,0,0" VerticalAlignment="Top" Orientation="Horizontal">
                        <Label Content="Biller" Foreground="White" FontSize="56" FontFamily="Segoe UI Light, Lucida Sans Unicode, Verdana"/>
                        <Label Content="{Binding Version}" Foreground="White" FontSize="56" Margin="10,0,0,0" FontFamily="Segoe UI Light, Lucida Sans Unicode, Verdana"/>
                    </StackPanel>
                    <StackPanel Margin="20,110,0,0" Name="SPWelcomeLeft">
                        <Label Content="Schnellzugriff" Foreground="White" FontSize="30" FontFamily="Segoe UI Light, Lucida Sans Unicode, Verdana"/>
                        <metro:Tile Title="{DynamicResource createorder}" Background="#FF007BCE" Margin="0,20,0,0" Name="Tile1">
                            <Image Source="Images\auftragadd.png" Width="64"/>
                        </metro:Tile>
                        <metro:Tile Title="{DynamicResource article}" Background="#FF007BCE" Name="Tile2">
                            <Image Source="Images\basket.png" Width="64"/>
                        </metro:Tile>
                        <metro:Tile Title="Kunden" Name="Tile3" Background="#FF007BCE">
                            <Image Source="Images\customer.png" Width="64"/>
                        </metro:Tile>
                    </StackPanel>
                </Grid>
            </Grid>
        </Grid>
    </Grid>
</Fluent:RibbonWindow>